From 37d8155150d6799cf59f4cc1292955da7975414c Mon Sep 17 00:00:00 2001 From: Vitaly Galaichuk Date: Thu, 4 Apr 2024 18:38:19 +0700 Subject: [PATCH] chore: add access token to ci scripts for private repos fetching in deps --- .github/workflows/CI.yml | 3 +++ .github/workflows/Slither.yml | 13 ++++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 6232fc4..2156ece 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -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: @@ -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: diff --git a/.github/workflows/Slither.yml b/.github/workflows/Slither.yml index 6967f08..5ec5dbe 100644 --- a/.github/workflows/Slither.yml +++ b/.github/workflows/Slither.yml @@ -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 @@ -20,14 +23,14 @@ jobs: - name: Install dependencies run: forge install - + - name: Run Slither core uses: crytic/slither-action@v0.2.0 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