Skip to content

Commit

Permalink
Merge pull request #62 from lidofinance/feature/gh-actions
Browse files Browse the repository at this point in the history
slither ci
  • Loading branch information
bulbozaur authored Jul 25, 2024
2 parents 46f3d71 + f192a76 commit 797099a
Show file tree
Hide file tree
Showing 3 changed files with 4,229 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/slither.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Slither Analysis

on:
push:
branches: [develop, master]
pull_request:
branches: [develop, master]

jobs:
analyze:
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
steps:
- uses: actions/checkout@v4

- name: Run Slither
uses: crytic/[email protected]
id: slither
with:
sarif: results.sarif
fail-on: none

- name: Check results.sarif presence
id: results
if: always()
shell: bash
run: >
test -f results.sarif &&
echo 'value=present' >> $GITHUB_OUTPUT ||
echo 'value=not' >> $GITHUB_OUTPUT
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ${{ steps.slither.outputs.sarif }}
7 changes: 7 additions & 0 deletions slither.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"exclude_informational": true,
"exclude_low": true,
"exclude_medium": false,
"exclude_high": false,
"filter_paths": "(.test/|.template/|node_modules/|.lib/|.contracts/model)"
}
Loading

0 comments on commit 797099a

Please sign in to comment.