-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (33 loc) · 1.13 KB
/
slither.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Slither Analysis
on: [push, pull_request]
jobs:
analyze:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Run Slither
uses: crytic/[email protected]
id: slither
with:
node-version: 16
fail-on: none
slither-args: --checklist --show-ignored-findings --markdown-root ${{ github.server_url }}/${{ github.repository }}/blob/${{ github.sha }}/
- name: Save Slither output to file
run: echo "${{ steps.slither.outputs.stdout }}" > slither-output.txt
- name: Configure Git
run: |
git config user.name "GitHub Actions Bot"
git config user.email "[email protected]"
- name: Commit and push changes
run: |
git add slither-output.txt
git commit -m "Update Slither analysis output"
git push
# Upload Slither Report as an Artifact
- name: Upload Slither Report
if: always() # Ensure the artifact is uploaded even if previous steps fail
uses: actions/upload-artifact@v3
with:
name: slither-report
path: slither-output.txt