Skip to content

Commit

Permalink
chore: add access token to ci scripts for private repos fetching in deps
Browse files Browse the repository at this point in the history
  • Loading branch information
swissarmytowel committed Apr 4, 2024
1 parent 37a9baa commit 37d8155
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: recursive
token: ${{ secrets.CI_PAT }}
- name: Install Foundry
uses: onbjerg/foundry-toolchain@v1
with:
Expand All @@ -26,6 +27,8 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: recursive
token: ${{ secrets.CI_PAT }}

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/Slither.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,18 @@ name: Slither Analysis
# temporarily disabled because of the action bug
on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]

jobs:
analyze-core:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
token: ${{ secrets.CI_PAT }}

- name: Install Foundry
uses: onbjerg/foundry-toolchain@v1
Expand All @@ -20,14 +23,14 @@ jobs:

- name: Install dependencies
run: forge install

- name: Run Slither core
uses: crytic/[email protected]
continue-on-error: true
id: slither
with:
target: "src/core"
slither-config: "slither.config.json"
target: 'src/core'
slither-config: 'slither.config.json'
solc-version: 0.8.17
sarif: results.sarif
fail-on: none
Expand Down

0 comments on commit 37d8155

Please sign in to comment.