Skip to content

Expand GitHub workflow supply-chain and token-scoping audits #445

Closed

Description

@lex00

Problem

Workflow supply-chain coverage is strong but has gaps around pin provenance, generated-token scope, usage policy, and live vulnerability intelligence. Each of the following is a distinct, real exposure the auditor does not yet catch.

Proposal

Add the following workflow audit rules. Each is independent and can ship separately.

Scope

  • Stale pin annotation — a reference pinned to an immutable digest whose human-readable version comment is missing or no longer matches the digest it points at, so reviewers trust a label that has drifted.
  • Over-scoped generated token — issuance of an installation/app token with broader scope or lifetime than the consuming steps require.
  • Usage policy enforcement — an opt-in allow/deny mechanism that flags third-party references outside an approved set, for environments that constrain which external components may run.
  • Advisory cross-reference — checking pinned references against a known-vulnerability feed and flagging those with a disclosed issue, refreshed rather than baked into a static list.

Acceptance criteria

  • Each capability is a separate rule with its own id, severity, dimension, tier, and remediation.
  • Stale-pin rule flags both a missing annotation and a mismatched one.
  • Over-scoped-token rule flags excess scope/lifetime against consuming steps.
  • Policy rule is opt-in and configurable, silent when unconfigured.
  • Advisory cross-reference degrades gracefully when the feed is unreachable.
  • Unit tests and fixtures per rule; docs updated.
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

    area:audit

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions