Skip to content

Harden VERIFRAX current chain bundle replay bindings #463

Harden VERIFRAX current chain bundle replay bindings

Harden VERIFRAX current chain bundle replay bindings #463

name: Authority Boundary
on: [pull_request]
jobs:
deny-authority-mutations:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
fetch-depth: 0
- run: |
BASE="${{ github.event.pull_request.base.sha }}"
HEAD="${{ github.event.pull_request.head.sha }}"
CHANGED="$(git diff --name-only "$BASE" "$HEAD")"
DENY_REGEX='^(freeze/v2\.6\.0/|verifrax-engine/execute_v2_6_0\.js$|verifrax-reference-verifier/src/verify_v2_6_0\.js$|SYSTEM_IDENTITY\..*|BUILD_HASH\.txt$)'
if echo "$CHANGED" | grep -E "$DENY_REGEX"; then
echo "::error::Authoritative surface modified"
exit 1
fi