From 6fbce9ddc69764a0067ec39cc7130c8645d4450b Mon Sep 17 00:00:00 2001 From: chaosxcode Date: Sun, 16 Aug 2026 16:42:08 -0400 Subject: [PATCH] ci: add HookGuard, a Uniswap v4 hook risk check --- .github/workflows/hookguard.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/hookguard.yml diff --git a/.github/workflows/hookguard.yml b/.github/workflows/hookguard.yml new file mode 100644 index 0000000..996b5b4 --- /dev/null +++ b/.github/workflows/hookguard.yml @@ -0,0 +1,23 @@ +name: hookguard + +# Checks the hook for known Uniswap v4 footguns on every change. +# Heuristic pattern matching, not an audit. Annotates only, never blocks. + +on: + pull_request: + push: + branches: [main] + +permissions: + contents: read + pull-requests: write + +jobs: + scan: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: chaosxcode/hookguard@v1 + with: + paths: contracts + fail-on: never