diff --git a/.github/workflows/slither.yml b/.github/workflows/slither.yml index 39c522e9..aaf2dadf 100644 --- a/.github/workflows/slither.yml +++ b/.github/workflows/slither.yml @@ -2,9 +2,10 @@ name: Slither Analysis on: push: - branches: [develop, master] + branches: + - '*' pull_request: - branches: [develop] + branches: [develop, master] jobs: analyze: @@ -19,7 +20,10 @@ jobs: - uses: actions/setup-python@v4 with: python-version: "3.10.6" - + + - name: Install Foundry + uses: foundry-rs/foundry-toolchain@v1 + - name: Install poetry requirements run: > curl -sSL https://install.python-poetry.org | python - && @@ -27,7 +31,7 @@ jobs: - name: Run slither run: > - poetry run slither . --sarif results.sarif --fail-none + poetry run slither . --sarif results.sarif --fail-none --compile-force-framework foundry - name: Check results.sarif presence id: results diff --git a/.github/workflows/verify-bytecode.yml b/.github/workflows/verify-bytecode.yml deleted file mode 100644 index 4b06509f..00000000 --- a/.github/workflows/verify-bytecode.yml +++ /dev/null @@ -1,36 +0,0 @@ ---- -name: Verify deployed contracts' bytecode - -on: - pull_request: - branches: - - "master" - -jobs: - assert-bytecode: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - with: - persist-credentials: false - - - name: Install poetry - run: pipx install poetry - - - name: Setup python - uses: actions/setup-python@v4 - with: - python-version: "3.10" - cache: poetry - - - name: Install python dependencies - run: poetry install - - - name: Compile contracts - run: poetry run brownie compile - - - name: Verify bytecode of contracts - uses: lidofinance/action-verify-bytecode@master - with: - file: artifacts.json diff --git a/remappings.txt b/remappings.txt new file mode 100644 index 00000000..b1f3e65f --- /dev/null +++ b/remappings.txt @@ -0,0 +1 @@ +OpenZeppelin/openzeppelin-contracts@4.3.2/=dependencies/OpenZeppelin/openzeppelin-contracts@4.3.2