diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml new file mode 100644 index 0000000..9096371 --- /dev/null +++ b/.github/dependabot.yaml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" \ No newline at end of file diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml new file mode 100644 index 0000000..ffb1234 --- /dev/null +++ b/.github/workflows/pr.yaml @@ -0,0 +1,14 @@ +name: pull_request + +on: + pull_request: + branches: + - main + +jobs: + checkout: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + test: + uses: ./.github/workflows/slither.yaml diff --git a/.github/workflows/slither.yaml b/.github/workflows/slither.yaml new file mode 100644 index 0000000..f0a8809 --- /dev/null +++ b/.github/workflows/slither.yaml @@ -0,0 +1,23 @@ +name: Slither Analysis + +permissions: + contents: read + security-events: write + +on: [workflow_call] +jobs: + analyze: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: crytic/slither-action@v0.3.0 + id: slither + with: + sarif: results.sarif + fail-on: none + target: fee-collectors + + - name: Upload SARIF file + uses: github/codeql-action/upload-sarif@v2 + with: + sarif_file: ${{ steps.slither.outputs.sarif }} \ No newline at end of file diff --git a/.gitmodules b/.gitmodules index fbba063..5ee7f3f 100644 --- a/.gitmodules +++ b/.gitmodules @@ -22,6 +22,6 @@ [submodule "fee-collectors/lib/earlybird-evm-interfaces"] path = fee-collectors/lib/earlybird-evm-interfaces url = https://github.com/orb-labs/earlybird-evm-interfaces -[submodule "fee-collectors/lib/forge-std"] - path = fee-collectors/lib/forge-std +[submodule "fee-collectors/lib/fee-collectors/lib/forge-std"] + path = fee-collectors/lib/fee-collectors/lib/forge-std url = https://github.com/foundry-rs/forge-std diff --git a/fee-collectors/.gitmodules b/fee-collectors/.gitmodules new file mode 100644 index 0000000..e69de29 diff --git a/fee-collectors/lib/forge-std b/fee-collectors/lib/forge-std deleted file mode 160000 index 74cfb77..0000000 --- a/fee-collectors/lib/forge-std +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 74cfb77e308dd188d2f58864aaf44963ae6b88b1