Skip to content

Commit 4fe96a3

Browse files
committed
ci
Signed-off-by: Adam Wolf <wolfynft@gmail.com>
1 parent 155ff49 commit 4fe96a3

File tree

1 file changed

+29
-11
lines changed

1 file changed

+29
-11
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,32 @@ jobs:
3636
curl -Os https://uploader.codecov.io/latest/linux/codecov; \
3737
chmod +x codecov; \
3838
./codecov;
39-
slither:
40-
runs-on: ubuntu-latest
41-
steps:
42-
- uses: actions/checkout@v3
43-
- name: Configure git safe directory
44-
run: git config --global --add safe.directory /github/workspace
45-
- uses: crytic/slither-action@35510b34cfdfb137d9816d27378ee8c217f1fa1c
46-
with:
47-
fail-on: low
48-
slither-version: d8e526e53ff690bd24c260042117efab5ce9c271
49-
slither-args: "--exclude-dependencies"
39+
slither:
40+
runs-on: ubuntu-latest
41+
steps:
42+
- uses: actions/checkout@v3
43+
with:
44+
path: workspace
45+
- name: Configure git safe directory
46+
run: git config --global --add safe.directory /github/workspace
47+
- name: Debug ownership
48+
run: |
49+
ls -l /github
50+
ls -l /github/workspace
51+
whoami
52+
id
53+
- name: Fix workspace ownership
54+
run: sudo chown -R $(id -u):$(id -g) /github/workspace
55+
- name: Install Foundry
56+
uses: foundry-rs/foundry-toolchain@v1
57+
with:
58+
version: nightly
59+
- name: Install dependencies
60+
run: |
61+
cd workspace
62+
forge install
63+
- uses: crytic/slither-action@35510b34cfdfb137d9816d27378ee8c217f1fa1c
64+
with:
65+
fail-on: low
66+
slither-version: d8e526e53ff690bd24c260042117efab5ce9c271
67+
slither-args: "--exclude-dependencies"

0 commit comments

Comments
 (0)