Framework Security

Hardening GitHub Actions against pull_request_target and SHA drift

Eliminate expression injection in run blocks, untrusted fork checkouts with write tokens, and mutable @v4 action tags.

Prerequisites

  • .github/workflows/*.yml
STEP 01

Pin every third-party Action to 40-char commit SHAs

Prevent upstream tag compromise from executing inside workflows holding OIDC or publish tokens.

STEP 02

Eliminate shell expression interpolation

Pass github.event inputs through bounded environment variables instead of inline shell expansion.

Related AegisSec skills