Merge pull request #133 from propeller-heads/fix/git-checkout-stage-fix

fix: prepared lint workflow for external contributors
This commit is contained in:
Khramtsov Valentin
2025-03-27 16:33:45 +03:00
committed by GitHub
3 changed files with 6 additions and 6 deletions

View File

@@ -13,12 +13,12 @@ jobs:
env:
RPC_URL: ${{ secrets.ETH_RPC_URL }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
uses: foundry-rs/foundry-toolchain@de808b1eea699e761c404bda44ba8f21aba30b2c
- name: Check formatting
run: forge fmt --check

View File

@@ -10,8 +10,8 @@ jobs:
analyze:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: crytic/slither-action@v0.4.0
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: crytic/slither-action@f197989dea5b53e986d0f88c60a034ddd77ec9a8
with:
target: 'foundry/'
slither-args: '--filter-paths foundry/lib/'
slither-args: '--filter-paths foundry/lib/'

View File

@@ -92,7 +92,7 @@ jobs:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
ref: ${{ github.head_ref }}
ref: ${{ github.event_name == 'pull_request' && format('refs/pull/{0}/head', github.event.pull_request.number) || github.ref }}
- name: Setup git to use https
run: |