- Need to manually install foundry and compile the project, or else it attempts to install the latest foundry version, which fails due to GLIBC not being found
24 lines
530 B
YAML
24 lines
530 B
YAML
name: Slither Analysis
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
jobs:
|
|
analyze:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install Foundry
|
|
uses: foundry-rs/foundry-toolchain@v1
|
|
- name: Build the contracts
|
|
run: forge build --build-info
|
|
with:
|
|
target: 'foundry/'
|
|
- uses: crytic/slither-action@v0.4.0
|
|
with:
|
|
target: 'foundry/'
|
|
ignore-compile: true
|
|
slither-args: '--filter-paths foundry/lib/' |