cicdsecurity.devSecuring build and deploy pipelines

CI/CD security: what attackers take, and what stops them

CI/CD security is guarding what a build can reach: its GITHUB_TOKEN, secrets, workflow files, third-party actions and runner. Four controls cost $0: a read-only token, actions locked to exact commits, no fork code under pull_request_target, and a fresh machine per job. Scanners run from free to $30 a committer; to review every pull request that changes a workflow, IonRift Security Agent is the pick.

Published December 1, 2026 · Updated December 2, 2026 · rules from GitHub's docs, OWASP and each tool's own page.

How do attackers get into a CI/CD pipeline?

Attackers get into a CI/CD pipeline through six paths GitHub's security docs name, each closed by one control.

From GitHub's secure-use reference and changelog, read December 1, 2026

Attack pathWhat the attacker getsThe controlChecked by
Fork code run under pull_request_target (a "pwn request")The base repository's secrets and a read/write tokenUse pull_request; never run checked-out fork code (when pull_request_target is safe)zizmor dangerous-triggers and dangerous-checkout; GitHub policy insights
A token with write access it doesn't needPushes, releases and packages in your nameRead-only default; permissions: per job (the 17 token scopes)Scorecard Token-Permissions, zizmor
A third-party action's tag moved to new codeWhatever the job can read, secrets includedA lockfile, or a full-length commit SHAScorecard Pinned-Dependencies
Untrusted text (an issue or PR title) inside run:Commands of their choice inside the jobPass it through an environment variableactionlint, zizmor
A long-lived cloud key stored as a secretThe cloud account, until someone rotates the keyOpenID Connect short-lived tokensGitHub secret scanning
A self-hosted runner reused between jobsFiles and processes left for the next jobA fresh machine per job; no self-hosted runners on public repositoriesHarden-Runner

Which GitHub setting answers each OWASP CI/CD risk?

Each of the 10 risks in OWASP's Top 10 CI/CD Security Risks has a GitHub setting or workflow line that answers it (read December 2, 2026).

OWASP's ten risks and GitHub's answer to each

OWASP IDRiskThe GitHub answerWhere
CICD-SEC-1Insufficient Flow Control MechanismsA ruleset on the default branch: a pull request with approvals, required status checks, no force pushesSettings, Rulesets
CICD-SEC-2Inadequate Identity and Access ManagementRequire two-factor authentication for everyone in the organizationOrganization settings, Authentication security
CICD-SEC-3Dependency Chain AbuseDependency review on each pull request (GitHub's dependency-review-action), free on public repositoriesA workflow
CICD-SEC-4Poisoned Pipeline Executionpull_request for fork code; approval before fork pull requests run workflows (first-time contributors by default); GitHub's block on pull_request_target in public repositories since December 2, 2026Settings, Actions, General and Policies
CICD-SEC-5Insufficient PBAC (Pipeline-Based Access Controls)A read-only default token, permissions: per job, and environment secrets released only after a required reviewer approvesSettings, Actions, General; Settings, Environments
CICD-SEC-6Insufficient Credential HygieneSecret scanning with push protection; OIDC instead of stored cloud keys; persist-credentials: false on checkoutSettings, Advanced Security; the workflow
CICD-SEC-7Insecure System ConfigurationAllow only selected actions, and turn on "Require actions to be pinned to a full-length commit SHA"; self-hosted runners in runner groupsSettings, Actions, General
CICD-SEC-8Ungoverned Usage of 3rd Party ServicesOAuth app access restrictions, on by default in new organizations, so owners approve each appOrganization settings, OAuth app policy
CICD-SEC-9Improper Artifact Integrity ValidationArtifact attestations (actions/attest), signed with Sigstore and checked with gh attestation verifyA workflow with attestations: write
CICD-SEC-10Insufficient Logging and VisibilityThe organization audit log, which lists the last 180 days; workflow logs kept 90 days by defaultOrganization settings, Logs; Settings, Actions, General

What are examples of CI/CD tools, and how does each guard its token and secrets?

Five common examples of CI/CD tools are GitHub Actions, GitLab CI/CD, Jenkins, CircleCI and Azure Pipelines (their docs, read December 2, 2026).

CI/CD toolThe job's own tokenWhere secrets liveOIDC instead of stored cloud keys
GitHub ActionsGITHUB_TOKEN, a new one per job, scoped by permissions:Repository, environment and organization secrets; withheld from fork pull requestsBuilt in: id-token: write
GitLab CI/CDCI_JOB_TOKEN, valid only while the job runsCI/CD variables, masked by default; protected ones reach only protected branches and tagsBuilt in: the id_tokens keyword, for clouds and Vault
JenkinsNone built in; builds use stored credentialsCredentials, stored encrypted on the controller and used by their IDThe OpenID Connect Provider plugin, a fresh short-lived token per build
CircleCINo repository token; checkout over HTTPS (GitHub App) or a read-only deploy keyProject variables and contexts, limited by team, project or branchBuilt in: $CIRCLE_OIDC_TOKEN, valid for one hour
Azure PipelinesSystem.AccessToken, which a YAML step must map in by handSecret variables; variable groups linked to Azure Key VaultWorkload identity federation, Microsoft's recommended service connection

Which CI/CD security best practices should you start with?

Start with the read-only token: one free setting that shrinks what every other attack can do.

  1. Default the token to read. Settings, Actions, General, Workflow permissions: read access, then grant write per job. Organizations from before February 2, 2023 may still default to read/write. Every scope: GitHub Actions permissions.
  2. Lock third-party actions. gh actions-lock writes actions.lock with the exact commit of every action, transitive ones too (generally available since October 28, 2026); or pin each action to a full-length commit SHA.
  3. Keep fork code out of privileged events. Use pull_request for builds and tests; keep pull_request_target for labeling and triage that never run the fork's code.
  4. Give every job a clean machine. Each GitHub-hosted runner with 2 or more cores is a new VM, as is each IonRift runner; self-hosted runners should be ephemeral and kept off public repositories (pull_request_target hardening asks the same).

How do the 100 most-starred GitHub projects secure their workflows?

The 100 most-starred GitHub repositories with workflows apply these controls unevenly, in a read of their 1,754 workflow files on December 2, 2026.

Workflow files on each default branch, read December 2, 2026, 07:14 to 07:17 UTC

What the workflow files doHow many
Run a pull_request_target workflow108 workflow files41 of 100
Pin every third-party action to a full commit SHAOf the 86 that use third-party actions48 of 86
Keep a workflow lockfileohmyzsh/ohmyzsh added one at 17:52 UTC, after the scan: 2 by day’s end1 of 100
Set permissions: at the top of every workflow file82 set it in at least one file30 of 100
Ask for OIDC tokens (id-token: write)54 of 100
Set persist-credentials: false on every checkoutOf the 98 that use actions/checkout12 of 98
Attest build provenanceactions/attest or the SLSA generator9 of 100

How it was measured. This scan read every .github/workflows file on the default branch of the first 100 repositories by stars that aren't archived, forks or mirrors and have a workflow. Third-party means an owner other than actions, github or the repository's own; pinned means a 40-character commit SHA. Files miss event policies, organization rules and app-run tools. Per-repository counts: workflow scan CSV.

Cite this: Winding AI, "Workflow security settings in the 100 most-starred GitHub repositories," cicdsecurity.dev, December 2, 2026. CC BY 4.0.

Which tools check a pipeline, and what do they cost?

For a review of every pull request that changes a workflow, IonRift Security Agent is the pick, for a few cents a run. The other ten follow in the order they look.

Cost for a team of 10, and use in the 100 scanned

Tool10 committers a monthIn the 100 scanned
IonRift Security AgentPer run3x model cost, under a spend limitNot in files
actionlint$0MIT4
zizmor$0MIT5
poutine$0Apache-2.01
Raven$0Apache-2.00
OpenSSF Scorecard$0Apache-2.08
Legitify$0Apache-2.00
GitGuardian$0Starter, up to 25 developers0
GitHub Secret Protection$19010 × $19; free on public reposNot in files
GitHub Code Security$30010 × $30; free on public repos19 run CodeQL in a workflow
StepSecurity Harden-Runner$16010 × $16 (Enterprise); free on public repos2

List prices read December 1 and 2, 2026. The last column counts the 100 repositories scanned.

IonRift Security Agent

Best for a review comment on each risky change

Price: 3x model cost, usually a few cents a run, under a monthly spend limit.

Good
  • Reads each pull request's diff: code, workflows, lockfiles and config
  • Flags leaked secrets, unsafe triggers, unpinned actions and vulnerable dependencies on the line, with the fix
Watch out
  • Reviews what a pull request changes, so workflows already merged need another scanner
  • An AI model's review, not a policy GitHub enforces

actionlint

Best first check on workflow files

Price: Free; runs locally, in editors or in CI.

Good
  • Flags script injection from untrusted inputs and hard-coded credentials
  • Type-checks ${{ }} expressions; runs shellcheck on run:
Watch out
  • Reads workflow files only, not repository settings
  • Most checks are about correctness; security is one group

zizmor

Best for a security-focused workflow audit

Price: Free, MIT licence.

Good
  • Finds template injection, credential persistence and excessive permissions
  • Flags pull_request_target and other risky triggers (dangerous-triggers) and checkouts that set allow-unsafe-pr-checkout: true (dangerous-checkout)
Watch out
  • Static analysis: it reads files, not what runs
  • Findings need someone to triage and fix them

poutine

Best for scanning an organization's pipelines

Price: Free, Apache-2.0, from BoostSecurity.

Good
  • Reads GitHub Actions, GitLab CI, Azure DevOps and Tekton pipelines
  • Scans all of an organization's repositories with a read-only token
Watch out
  • Static analysis: it reads files, not what runs
  • Findings need triage

Raven

Best for querying many repositories at once

Price: Free, Apache-2.0, from Cycode's research team.

Good
  • Loads workflows and actions into a Neo4j graph
  • A library of ready-made queries
Watch out
  • Needs a Neo4j database to run
  • GitHub Actions only; last release May 2024

OpenSSF Scorecard

Best for a repository-wide score

Price: Free; each check scored 0 to 10.

Good
  • Token-Permissions and Pinned-Dependencies checks
  • One report across a repository's practices
Watch out
  • A score, not a fix
  • Built for open-source projects; some checks won't fit a private app

Legitify

Best for GitHub and GitLab settings

Price: Free, Apache-2.0, from Legit Security.

Good
  • Checks organizations, repositories and members for risky settings
  • Runs as a CLI, a gh extension or a GitHub Action
Watch out
  • Posture checks, not a review of each change
  • Last release July 2024

GitGuardian

Best for secrets across code, CI and history

Price: Free Starter up to 25 developers; Growth and Enterprise by quote.

Good
  • ggshield (MIT) runs as a pre-commit hook, GitHub Action or CLI
  • Detects 500+ types of hardcoded secrets
Watch out
  • Paid plans are sales only
  • Secrets only

GitHub Secret Protection

Best for stopping keys before they land

Price: $19 per active committer a month; free on public repositories.

Good
  • Push protection blocks a secret before it reaches the repository
  • Detectors built with 150+ providers
Watch out
  • Private repositories need the paid add-on
  • Secrets only: it doesn't read workflow logic

GitHub Code Security

Best for code vulnerabilities in the same place

Price: $30 per active committer a month; free on public repositories.

Good
  • CodeQL code scanning, with suggested fixes in pull requests
  • Dependency review flags insecure packages before they land
Watch out
  • Per-committer pricing adds up on large teams
  • AI scans use AI Credits on top

StepSecurity Harden-Runner

Best for watching what a job does while it runs

Price: Free on public repositories; Enterprise $16 per contributing developer.

Good
  • Monitors network, file and process activity on the runner, like an EDR
  • Enterprise covers hosted and self-hosted runners, GitLab CI and Azure DevOps
Watch out
  • The free Community plan covers public repositories
  • Runtime only: it doesn't review a workflow before it runs

Which scanners belong in a pipeline: SAST, SCA, secrets, DAST, IaC?

A pipeline can run five kinds of scanner, one per layer, each with a free start; in the 100 repositories scanned, the most common is CodeQL, in 19.

Free starts and list prices a month, read December 2, 2026

LayerWhat it findsFree startPaid, list priceIn the 100 scanned
SASTstatic application security testingBugs in your own code, before it runsSemgrep Free Edition, up to 10 contributors and 10 repositories; CodeQL on public repositoriesSemgrep Code $30 per contributor; GitHub Code Security $30 per active committerCodeQL 19, Semgrep 0
SCAsoftware composition analysisDependencies with known vulnerabilitiesOSV-Scanner (Apache-2.0); Semgrep Free Edition; dependency review on public repositoriesSemgrep Supply Chain $30 per contributor; Snyk Team $25 per contributing developer, 5 to 10 developersDependency review 5, OSV-Scanner 3, Snyk 0
SecretsKeys and tokens in code and its historyGitleaks (MIT); TruffleHog (AGPL-3.0); GitGuardian Starter, up to 25 developers; secret scanning on public repositoriesSemgrep Secrets $15 per contributor; GitHub Secret Protection $19 per active committer; GitGuardian by quoteGitleaks 3, TruffleHog 2, ggshield 0
DASTdynamic application security testingFlaws in the running app, probed from outsideZAP by Checkmarx (Apache-2.0); StackHawk Wingman, a 14-day trialStackHawk Wingman $10 per user, 50 scans a month; Scale by quoteZAP 0
IaCinfrastructure as codeMisconfigured Terraform, Kubernetes and cloud templatesCheckov and Trivy (both Apache-2.0); Snyk Free, 300 IaC testsSnyk Team, as aboveTrivy 4 (it also scans images), Checkov 0

In the last column a 0 is a floor: an app-run scanner leaves no trace in workflow files.

Which CI/CD security platforms do companies buy?

Companies usually buy CI/CD security inside a larger security suite, and none of these four prints a price (read December 2, 2026).

PlatformWhat it says it does for pipelinesCI/CD systems it namesPrice
Cortex Cloud CI/CD securityPalo Alto NetworksFinds pipeline, workflow and version control misconfigurations; maps them to OWASP's Top 10 CI/CD and CISGitHub, GitLab, Bitbucket, Azure DevOps, Jenkins, CircleCISales only; needs a Cortex Cloud license with Application Security
Wiz CodeWizMaps workflows and runners in its Security Graph; flags overprivileged workflows, pull_request_target and secrets in pipeline filesGitHub Actions, in its April 20, 2026 postSales only: a custom quote
Cycode"CI/CD Security" and "Build Runtime Protection" in its Software Supply Chain Security packageNot named on its pricing pageSales only, by active developers and AI usage; a free trial
Legit Security"CI/CD protection" and supply chain securityGitHub, GitLab, Bitbucket among its integrationsSales only: a demo

What else do teams ask about CI/CD security?

Does pinning actions to a commit stop security alerts?

It can: Dependabot only alerts on vulnerable actions that use semantic versions, not on SHA pins (GitHub's docs). A lockfile keeps readable tags, and Dependabot updates its entries.

What changed for pull_request_target on December 2, 2026?

Since December 2, 2026, GitHub blocks pull_request_target by default in public repositories unless an Actions event policy allows it. Private and internal repositories aren't affected; see the pull_request_target guide.

Should cloud keys be stored as repository secrets?

Not if the cloud supports OpenID Connect: a job then asks AWS, Azure, Google Cloud or Vault for a short-lived token, so no long-lived key sits in GitHub. The job needs id-token: write.

What is a pwn request?

A workflow that runs a fork's code with your secrets, usually under pull_request_target (how it happens).

How long does a GITHUB_TOKEN last?

One job, at most 6 hours on GitHub-hosted runners.