Inspect external CI code and permissions

SEC-007 / v1.1.0 / 2026-10-09

Editorial inspection guidance. Start with read-only permissions; fixes, credential revocation, and production changes follow the owner’s authorization.

Read-only review example

For this kind of environment

A pipeline executes external actions or scripts and can deploy to production.

First read
Map the execution definitions to the permissions supplied to each step.
Where to look
  • External code origins and pinned revisions.
  • Per-step token permissions and destinations.
  • Conditions for running external changes and the deployment approval boundary.
Evidence to retain
Record the relationship between external code, reachable assets, and approval-gated actions.
What this does not establish
Do not execute unknown external scripts or increase privileges to perform this review.

Applicability

CI executing external actions, orbs, scripts, or build tools.

Read the incidents behind this rule (8)
Rule on GitHub ↗

Where to look first

  • CI workflows, download URLs, action references
  • Job permissions, secret types, trust boundaries
  • Dependency lockfiles, frozen installation, and publishing jobs

Inspection steps

  1. Inspect mutable references and direct remote-script execution; assess pinning, signatures, and trusted verification.
  2. Check whether external-code steps receive unnecessary secrets or write permissions.
  3. Check committed lockfiles and frozen installs, and whether dependency installation can access tokens that publish other packages.

Remediation direction

  • Pin reviewed references and review updates; separate jobs by secret requirements.

Evidence required for completion

  • Record pinned references, verification evidence, and successful execution under narrowed permissions.

Limits and unverified scope

  • Pinning does not prove code is safe. A checksum from the same compromised source is insufficient.

Read this in context