Skip to content

Commit e3cba21

Browse files
Marc MongeMarc Monge
authored andcommitted
Fix Solidity static checks?
1 parent 3ff2573 commit e3cba21

File tree

1 file changed

+3
-23
lines changed

1 file changed

+3
-23
lines changed

.github/workflows/security-analysis.yml

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -22,35 +22,15 @@ jobs:
2222
with:
2323
submodules: recursive
2424

25-
- name: Install Foundry manually
26-
run: |
27-
# Download foundry binaries directly
28-
mkdir -p $HOME/.foundry/bin
29-
curl -L https://github.com/foundry-rs/foundry/releases/download/nightly/foundry_nightly_linux_amd64.tar.gz | tar -xz -C $HOME/.foundry/bin
30-
chmod +x $HOME/.foundry/bin/*
31-
echo "$HOME/.foundry/bin" >> $GITHUB_PATH
32-
33-
- name: Verify Foundry installation
34-
run: |
35-
export PATH="$HOME/.foundry/bin:$PATH"
36-
which forge
37-
forge --version
38-
39-
- name: Install forge-std
40-
run: |
41-
export PATH="$HOME/.foundry/bin:$PATH"
42-
forge install foundry-rs/forge-std --no-commit || true
43-
4425
- name: Run Slither
4526
uses: crytic/slither-action@v0.4.1
4627
id: slither
47-
env:
48-
PATH: ${{ env.PATH }}:$HOME/.foundry/bin
4928
with:
50-
target: 'src/contracts'
29+
target: '.'
5130
sarif: slither-results.sarif
5231
fail-on: none
53-
slither-args: '--exclude naming-convention,solc-version'
32+
ignore-compile: false
33+
slither-args: '--exclude naming-convention,solc-version --foundry-out-dir out'
5434

5535
- name: Upload SARIF file
5636
uses: github/codeql-action/upload-sarif@v3

0 commit comments

Comments
 (0)