Skip to content

Commit

Permalink
add slither github action (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
gfournieriExec authored Jun 5, 2024
2 parents 29e8cf7 + 8fd237c commit f7a51f1
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,16 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: iExecBlockchainComputing/iexec-voucher-contracts
- name: Run static analysis with slither
uses: crytic/[email protected]
id: slither
with:
target: "contracts/"
slither-args: --checklist --markdown-root ${{ github.server_url }}/${{ github.repository }}/blob/${{ github.sha }}/
node-version: "20"
fail-on: none # TODO set this to high or other
sarif: results.sarif
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ${{ steps.slither.outputs.sarif }}
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog

## vNEXT
- Add slither github action. (#24)
- Top up voucher. (#23)
- Claim task part 2 - Add voucher tests. (#21)
- Claim task part 1 - Solidity with minimal tests. (#20)
Expand Down
1 change: 1 addition & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ const config: HardhatUserConfig = {
},
dependencyCompiler: {
paths: ['@openzeppelin/contracts/proxy/beacon/UpgradeableBeacon.sol'],
keep: true, // Keep it for slither
},
};

Expand Down
5 changes: 5 additions & 0 deletions slither.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"solc_remaps": "@=node_modules/@",
"filter_paths": "(mocks/|node_modules/)",
"solc_args": "--optimize --via-ir"
}

0 comments on commit f7a51f1

Please sign in to comment.