generated from ahmedali8/hardhat-ts-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: "Slither Analysis" | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: | ||
- "main" | ||
|
||
jobs: | ||
analyze: | ||
runs-on: "ubuntu-latest" | ||
permissions: | ||
actions: "read" | ||
contents: "read" | ||
security-events: "write" | ||
steps: | ||
- name: "Check out the repo" | ||
uses: "actions/checkout@v3" | ||
with: | ||
submodules: "recursive" | ||
|
||
- name: "Run Slither analysis" | ||
uses: "crytic/[email protected]" | ||
id: "slither" # Required to reference this step in the next step. | ||
with: | ||
fail-on: "none" # Required to avoid failing the CI run regardless of findings. | ||
node-version: 16 | ||
sarif: "results.sarif" | ||
solc-version: "0.8.19" | ||
|
||
- name: "Upload SARIF file to GitHub code scanning" | ||
uses: "github/codeql-action/upload-sarif@v2" | ||
with: | ||
sarif_file: ${{ steps.slither.outputs.sarif }} | ||
|
||
- name: "Add Slither summary" | ||
run: | | ||
echo "## Slither result" >> $GITHUB_STEP_SUMMARY | ||
echo "✅ Uploaded to GitHub code scanning" >> $GITHUB_STEP_SUMMARY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"detectors_to_exclude": "naming-convention,solc-version", | ||
"filter_paths": "(lib|test|scripts)" | ||
} |