-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🚧 Update Slither workflow to include Foundry installation and contrac…
…t building
- Loading branch information
Showing
1 changed file
with
11 additions
and
7 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 |
---|---|---|
@@ -1,10 +1,6 @@ | ||
name: Slither Analysis | ||
on: [push] | ||
|
||
permissions: | ||
contents: read | ||
security-events: write | ||
|
||
jobs: | ||
analyze: | ||
runs-on: ubuntu-latest | ||
|
@@ -23,12 +19,20 @@ jobs: | |
- name: Install JavaScript Dependencies | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
with: | ||
version: nightly | ||
|
||
- name: Install Foundry Dependencies | ||
run: forge install | ||
|
||
- name: Build Contracts | ||
run: yarn build | ||
|
||
# Run Slither static analyzer | ||
- name: Run Slither | ||
uses: crytic/[email protected] | ||
with: | ||
ignore-compile: true # Assume pre-compilation or custom compilation steps | ||
fail-on: "medium" # Action will fail if issues of medium severity or higher are found | ||
solc-version: "0.8.24" # Use a specific Solidity compiler version | ||
target: "contracts/" # Specify the target directory for analysis | ||
sarif: "slither-results.sarif" # Generate a SARIF report for Code Scanning integration |