Skip to content

bridge-gate.yml builds panic-attack from moving main (unpinned scanner, CWE-829) #481

Open

Description

@hyperpolymath

What

.github/workflows/bridge-gate.yml builds its scanner like this:

git clone --depth 1 https://github.com/hyperpolymath/panic-attack /tmp/pa
cargo build --release --features http --manifest-path /tmp/pa/Cargo.toml

That takes whatever is on panic-attack main at run time. The same commit can therefore pass or fail depending on when it runs, and a change pushed to panic-attack runs inside echidna's CI without review here. This is the pattern hyperpolymath/panic-attack#212 fixed for scan-and-report.yml.

static-analysis-gate.yml already does this properly:

  • pins PANIC_ATTACK_REF to a full SHA;
  • builds with cargo install --git … --rev "$PANIC_ATTACK_REF" --locked;
  • checks .crates.toml names that rev;
  • records the binary digest.

The Patch Bridge report schema has also moved: 0.2.0 → 0.3.0 adds vulnerability_data. This job's B1 verdict step should only trust a report whose feed was queried.

Acceptance criteria

  • bridge-gate.yml builds panic-attack at the same pinned PANIC_ATTACK_REF as static-analysis-gate.yml, or reuses that job's preserved panic-attack-toolchain artifact. No build from a moving ref remains.
  • The B1 verdict refuses a report whose vulnerability_data is not queried.

Found while working on #478.

Activity

  1. coderabbitai commented on Nov 9, 2026

    @coderabbitai
    Contributor
    🔗 Related PRs

    #455 - audit: routing/rule-engine recon, Logtalk quarantine; Agda proofs re-checked under PROOF-POLICY §2.1 [merged]


    📝 Issue Planner

    Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.

    • Create Plan

    🧪 Issue enrichment is currently in open beta.

    You can configure auto-planning by selecting labels in the issue_enrichment configuration.

    To disable automatic issue enrichment, add the following to your .coderabbit.yaml:

    issue_enrichment:
      auto_enrich:
        enabled: false

    💬 Have feedback or questions? Drop into our discord!

  2. added
    bugSomething is broken or behaves incorrectly
    on Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken or behaves incorrectly

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions