Abstract
What does an attacker gain by getting code to run inside a build pipeline rather than stealing a developer’s token? The answer depends on the job, but a release job can combine privileges that are usually held separately: secrets, a repository token, the right to request cloud or registry credentials through OpenID Connect, access to shared caches, and a publishing identity. Pipelines also process input that outsiders control, such as pull requests, issue titles, caches, artifacts and third-party actions. Three trust decisions are involved: whether untrusted input can execute, what the job that executes it holds, and whether registries and consumers accept what it produces. Incidents from 2024 to November 2026 show all three failing. In WPPConnect’s November 2026 release, a commit made without review was published through the project’s own pipeline with accurate SLSA provenance, so provenance alone did not reveal it. Pinning, scoped tokens, OIDC subject conditions and build provenance each close one of the three decisions and leave the others open; the durable fix is that no workflow both accepts outside input and holds the keys to what ships.
What a pipeline job can hold
A stolen developer token gives an attacker what that token’s scopes and its owner’s repository rights allow, which can include changing workflows. The library’s article on the repository as production follows that route and the tj-actions, Ultralytics and Codecov cases. Code running inside a CI job gets the job’s effective privileges instead. Those are assembled at run time from the trigger, the workflow’s permissions, the secrets in scope, any environment gates, the cache scope, and whatever external systems trust the job’s identity. They can be smaller or larger than a given developer’s, and they are often different in kind.
GitHub’s Security Lab listed what an action receives in 2021: computing time, the “secrets used in the same workflow job” and the repository token, and “It’s fair to assume that anyone who controls the YAML action definition has access to the temporary repository token in a context of the running workflow that consumes the action.”1 Depending on configuration, a job can also hold three further capabilities:
- With
id-token: write, it can request an OpenID Connect token that a cloud provider or registry may exchange for credentials, if that provider has been configured to trust it.23 - On some triggers it can write to the default branch’s cache, which later jobs may restore. Since June 2026 GitHub gives untrusted triggers read-only access by default.4
- In a release workflow, its output may be published under the project’s name and, where configured, with a signature or provenance attestation.5
Downstream acceptance of that output involves separate decisions. For a registry, a token or trusted-publisher binding is an authorization input; npm, for example, checks a binding that names the repository, workflow file and optionally an environment, and the publisher’s configuration decides whether it may publish directly or only stage a version for a maintainer to approve with two-factor authentication.67 For an attestation, verification checks the signature, that the signer is a recognised builder, and that the provenance applies to the artifact in question; that establishes what the build platform claims, not that the claimed build was safe.85 A consumer’s policy then decides which builders, buildType values and external parameters, such as the source repository and ref, it accepts.8 In November 2026 StepSecurity found that the malicious WPPConnect release 2.4.1 “was published by a GitHub Actions trusted publisher and carries valid SLSA provenance”, and wrote of its attestation: “Every field is accurate, and the commit is the malicious one.”9 TanStack’s advisory says its 84 malicious versions in May 2026 were “authenticated via the legitimate GitHub Actions OIDC trusted-publisher binding”, and its postmortem says the publish workflow “was not compromised”.1011
In GitGuardian’s dataset of machines compromised by the Shai-Hulud 2 npm worm, 59 percent were CI/CD runners rather than personal workstations.12 Build systems are an older target than the current wave of Actions incidents. CrowdStrike’s January 2021 analysis of SUNSPOT in the SolarWinds case describes malware that “monitors running processes for those involved in compilation of the Orion product and replaces one of the source files to include the SUNBURST backdoor code.”13 That history, with 3CX and XZ, is in the library’s article on when the official download is the malware.
The pipeline as a trust boundary
Triggers decide which workflow code runs, and with what
A GitHub Actions event decides which copy of the workflow definition runs, who can cause it to run, and what the job can receive. For pull_request on an open pull request without merge conflicts, the run uses the merge ref, refs/pull/<number>/merge, so the workflow file and code come from the proposed merge; a pull request with a merge conflict does not run pull_request workflows until the conflict is resolved, and a closed pull request’s ref depends on whether it was merged.14 Security Lab’s 2021 post explains that from forks this trigger “by default prevents write permissions and secrets access to the target repository”.15 pull_request_target “runs in the context of the default branch of the base repository”, so the workflow code is the base repository’s trusted version; it exists so workflows can label or comment on fork pull requests, and GitHub warns that running untrusted code under it can grant “unintended access to write privileges or secrets”.14 Security Lab’s January 2025 post reported vulnerable pull_request_target workflows lingering in non-default branches and reachable by pull requests against those branches; the current event reference describes default-branch context.1614 Events such as issues and issue_comment run the workflow file on the default branch.14 A workflow_run workflow “may grant write permissions and access to secrets even if the triggering workflow doesn’t have such privileges”.16
| Trigger | Workflow code used | Who can start it | What the job may receive |
|---|---|---|---|
push | The pushed commit’s | Users or tokens that can push to the branch | Secrets in scope; token at the configured permissions |
pull_request from a fork | The merge ref of an open, mergeable pull request | Anyone who can open a pull request, subject to fork-approval settings and execution policies | By default, no secrets and a read-only GITHUB_TOKEN; settings available for private repositories can send write tokens or secrets |
pull_request_target | The base repository’s default branch | Anyone who can open a pull request, subject to execution policies; blocked by default on affected public repositories from 2 December 2026 | Secrets in scope; token that may have write access |
issues, issue_comment | The default branch’s | Anyone who can open an issue or comment, subject to execution policies | Secrets in scope; token at the configured permissions |
workflow_run | The default branch’s | Indirectly, anyone who can make the triggering workflow run | Secrets in scope; token that may have write access |
workflow_dispatch | The chosen branch or tag’s; the workflow file must exist on the default branch | Users permitted to run the workflow manually, or a token permitted to dispatch it | Secrets in scope; token at the configured permissions |
The table draws on GitHub’s event reference, repository Actions settings, the Security Lab series and GitHub’s execution-protection notices.141715181619 The fork defaults can be changed: GitHub’s repository settings include options to “Send write tokens to workflows from pull requests” and “Send secrets to workflows from pull requests”.17 The workflow author controls which privileged triggers exist and what those jobs do with input; for several of them, any GitHub account can supply the input.
Secrets and the GITHUB_TOKEN
GitHub’s hardening guide says that “Any user with write access to your repository has read access to all secrets configured in your repository.”20 That access is indirect. The secrets REST API lists secrets “without revealing their encrypted values”;21 a user with write access can instead change or trigger workflows that receive secrets, subject to which secrets are in scope and to environment gates, which hold environment secrets until a required reviewer approves.22 The guide also warns that log redaction “is not guaranteed” and that structured data such as JSON “can cause secret redaction within logs to fail”.20
Every job receives a GITHUB_TOKEN, created “At the start of each workflow job”. It “expires when the job finishes or after its effective maximum lifetime”: six hours on GitHub-hosted runners, and refreshable for up to 24 hours on self-hosted ones.23 Its permissions come from the enterprise, organisation or repository setting unless the workflow sets a permissions block, and once any permission is specified, “all of those that are not specified are set to none”.3 On 2 February 2023 GitHub made the token read-only by default for new enterprises, organisations and repositories; the change “will not impact any existing enterprises, organizations or repositories”.24 Older accounts may therefore still have the previous read/write default, unless someone changed it. Before that change, the 2022 USENIX Security study of 447,238 workflows in 213,854 repositories found that “99.8% of workflows are overprivileged and have read-write access (instead of read-only) to the repository.”25
Runners
GitHub-hosted runners “execute code within ephemeral and clean isolated virtual machines”. Self-hosted runners “can be persistently compromised by untrusted code in a workflow”, and GitHub says they “should almost never be used for public repositories”.20 Just-in-time runners “perform at most one job before being automatically removed”, but GitHub warns that “Re-using hardware to host JIT runners can risk exposing information from the environment” and that automation is needed to give each one a clean environment.20
Caches and artifacts
Runs can restore caches created in the current branch or the default branch; a cache created by a pull-request run is scoped to the merge ref and “cannot be restored by the base branch”. A restore hit depends on the key, prefix matches, any restore-keys, and a cache version derived from the paths and compression tool.26 Whatever can write an entry into the default branch’s scope under a key and version that a later job looks up can therefore change what that job restores. Artifacts are files a run uploads for other jobs or workflows. Security Lab’s position since 2021 is that “Artifacts resulting from untrusted PR data are themselves untrusted and should be treated as such when handled in privileged contexts.”15
OIDC federation and the claims that matter
A job with id-token: write can request a JSON Web Token from GitHub’s issuer, https://token.actions.githubusercontent.com, and present it to a relying party that trusts that issuer.2 Why this beats stored keys is covered in the library’s article on standing cloud credentials; inside CI, what matters is which claims the relying party evaluates.
GitHub’s token carries sub, aud and custom claims including repository, ref, environment, event_name and job_workflow_ref, which for a reusable workflow is “the ref path to the reusable workflow”.2 Not every relying party can evaluate every claim. GitHub’s AWS guide states, “Support for custom claims for OIDC is unavailable in AWS”, so AWS trust policies work with sub and aud; GitHub lets owners customise the subject to include other claims.272 The default subject depends on context: repo:octo-org/octo-repo:environment:Production for a job in an environment, repo:octo-org/octo-repo:pull_request for a pull-request run, repo:octo-org/octo-repo:ref:refs/heads/demo-branch for a branch.2 GitHub states that “you must define at least one condition, so that untrusted repositories can’t request access tokens for your cloud resources”.2
An environment-based subject names the environment and nothing about the branch, so a condition on it accepts any ref allowed to run a job in that environment. AWS accordingly recommends adding protection rules and deployment branch and tag restrictions to environments used in OIDC policies.28 Names can also be reused. For repositories created after 15 July 2026, and for repositories renamed or transferred after that date, the default subject includes immutable owner and repository IDs, as in repo:octo-org@123456/octo-repo@456789:ref:refs/heads/main. Other repositories keep the name-only format unless they opt in, and GitHub Enterprise Server is excluded.2
The same concepts in GitLab CI
A GitLab variable marked “Protect variable” is “only available in pipelines that run on protected branches or protected tags.”29 A merge request from a fork normally runs its pipeline in the fork, with the fork’s variables. A parent-project member can run it in the parent project instead, where it “Uses the CI/CD configuration present in the fork project’s branch” and “the parent project’s CI/CD settings, resources, and project CI/CD variables”; GitLab warns that such merge requests “can contain malicious code that tries to steal secrets”. Protected variables and protected runners stay out of reach: “Merge request pipelines from forked repositories cannot access these protected resources.”30 The CI_JOB_TOKEN “is valid only while the job is running” and “receives the same access level as the user that triggered the pipeline”, though it can reach fewer resources than a personal access token; cross-project access requires the target project’s allowlist, with documented exceptions for some features of public and internal projects.31 GitLab’s id_tokens keyword issues OIDC tokens whose default subject is project_path:{group}/{project}:ref_type:{type}:ref:{branch_name} and which carry a ref_protected claim a relying party can require.32
Attack classes
The OWASP Top 10 CI/CD Security Risks supplies the vocabulary: insufficient flow control (CICD-SEC-1), identity and access management (2), dependency chain abuse (3), poisoned pipeline execution (4), insufficient pipeline-based access controls (5), credential hygiene (6), insecure system configuration (7), ungoverned third-party services (8), improper artifact integrity validation (9) and insufficient logging and visibility (10).33 Several of the cases below combine two or more of these.
Poisoned pipeline execution
OWASP’s CICD-SEC-4 describes three forms. In direct PPE, “the attacker modifies the CI config file in a repository they have access to”. In indirect PPE, the attacker injects “malicious code into files referenced by the configuration file”, such as a Makefile or test script. Public PPE is when “the CI pipeline of a public repository runs unreviewed code suggested by anonymous users”.34 Review limited to .github/workflows/ misses the indirect form. StepSecurity found the wfx stealer of November 2026 in added or modified workflows, and also pasted “into ordinary shell scripts that CI already runs” or hooked into npm scripts.35
Pwn requests
Security Lab’s 2021 summary: “Combining pull_request_target workflow trigger with an explicit checkout of an untrusted PR is a dangerous practice that may lead to repository compromise.”15 If the privileged workflow checks out the pull request’s head and builds or tests it, the attacker’s code runs with whatever secrets and token permissions that job has. The same 2021 post warned that removing secret references was not enough, because such a workflow “still has the read/write repository token in memory”, and that actions/checkout persisted the token for later steps unless persist-credentials: false was set.15 Checkout v6 changed where it is stored: “persist-credentials now stores credentials in a separate file under $RUNNER_TEMP instead of directly in .git/config”.36
Security Lab’s 2025 follow-up adds that approval requirements, such as a label attackers cannot set, are open to a time-of-check to time-of-use race when the workflow checks out a mutable reference such as the branch name, because the attacker can push new commits after approval; using the approved commit SHA closes that window. It also warns that permissions: {} “can unexpectedly pave the way for cache poisoning attacks”.16 Nx’s advisory for its August 2025 compromise shows a variant without a checkout: a pull_request_target workflow ran echo "Validating PR title: ${{ github.event.pull_request.title }}", its GITHUB_TOKEN had read/write permission, and Nx believes that token “was utilized to trigger another workflow, the publish.yml workflow”, which sent the npm token to a webhook.37 The package consequences are in the library’s piece on registry worms.
Script injection
In a run: step, GitHub substitutes ${{ }} expressions into a temporary shell script before the shell runs it. Security Lab lists event fields an outsider controls, including github.event.issue.title, github.event.issue.body, github.event.pull_request.title, github.event.comment.body and github.head_ref, and notes that even branch names, which cannot contain spaces, can carry an injection.18 It also observed that log redaction “is not a true security boundary”, and that a short-lived token can still be used if an attacker automates the attack.18 The fix is to pass untrusted values through an intermediate environment variable, so that the value is “stored in memory and used as variable instead of influencing the generation of script.”18
ARGUS, presented at USENIX Security 2023, analysed 2,778,483 workflows referencing 31,725 actions and “discovered critical code injection vulnerabilities in 4,307 Workflows and 80 Actions.”38 Wiz’s October 2026 review of GitHub’s platform changes says of this pattern that “None of GitHub’s 2026 changes touch this: there is no checkout to block”.39
workflow_run and artifact poisoning
Security Lab’s recommended split design has an unprivileged pull_request workflow build the untrusted code and upload results as an artifact, and a workflow_run workflow, which may have secrets and write scopes, consume the artifact.15 Its 2025 post explains how this goes wrong. Because a fork’s pull_request run uses the pull request’s workflow file, “an attacker can submit a pull request that modifies the triggering workflow and even replace the triggering events”, after which the workflow_run workflow starts. If it then treats the artifact as code or configuration, the attacker’s content runs with the privileged job’s access. Security Lab advises treating “all downloaded artifacts as potentially malicious” and extracting them outside the workspace, and notes that github.repository_owner checks do not help, because the workflow_run job runs in the default branch’s context.16
Self-hosted runner persistence
In January 2024 John Stawinski published an account of an attack he and Adnan Khan carried out on PyTorch’s CI through Meta’s bug bounty programme, reported on 9 August 2023. He wrote that by default “when a self-hosted runner is attached to a repository, any of that repository’s workflows can use that runner”, including fork pull-request workflows, and that a runner configured with the default steps is non-ephemeral, so a job can leave a process running.40 The repository required workflow approval only for first-time contributors, so they became contributors with a typo fix. Their “Runner on Runner” technique installed a second copy of the official runner agent registered to their own organisation.40 From there they reached secrets including AWS keys and two personal access tokens, and a GITHUB_TOKEN with actions: write let them dispatch a workflow that held those secrets. They describe the resulting ability “to upload malicious PyTorch releases to GitHub, upload releases to AWS, potentially add code to the main repository branch”.40
Cache poisoning
Adnan Khan’s May 2024 research described the mechanism. Restoring a cache “is just a call to extract the compressed file”, so an attacker who controls an entry that a privileged workflow restores can “overwrite any file within the working directory at the time of the cache hit”.41 In that post he reported that the runtime token used for cache access was valid for six hours and not invalidated when the run ended, which GitHub told him was working as intended; a 2025 update to the post says some of its techniques no longer apply.41 His December 2024 proof of concept, Cacheract, hijacks the post step of actions/checkout to run again in jobs that restore the poisoned entry, persisting while its entry “is warmed every 7 days and not evicted”.42
Two 2026 cases followed.
- Cline. Khan disclosed on 9 February 2026 that Cline’s issue-triage workflow, added on 21 December 2025, ran an AI agent on new issues for any user with shell tools enabled, so a prompt injection could run code in a default-branch workflow and, through cache poisoning, reach the nightly publishing workflows and their
VSCE_PAT,OVSX_PATandNPM_RELEASE_TOKENsecrets.43 Cline’s postmortem says the workflow had “read-only repo access, issues write” but “shared a cache scope with our nightly release workflow”, and that an attacker could flood the cache to evict entries, since “GitHub evicts immediately after 10 GB”. Ten gigabytes is GitHub’s default per-repository cache limit, which administrators can raise.26 Khan had reported it on 1 January; within 30 minutes of his disclosure Cline removed the vulnerable workflows and began rotating credentials. The Marketplace and OpenVSX tokens were rotated successfully, but “the wrong token was deleted while the exposed one remained active”, and on 17 February “an unauthorized party used a compromised npm publish token to publish cline@2.3.0”, whose only change was a postinstall script that installed the legitimateopenclawpackage. Cline says the incident was limited to the CLI.44 Khan states that he tested only on a mirror and attributes the publish to “A different actor” who found his proof of concept.43 - TanStack. On 11 May 2026 an attacker opened a fork pull request against TanStack Router. Its
bundle-size.ymlran onpull_request_target, checked out the pull request’s merge ref and built it, and a shared setup action usedactions/cache. The author had split the work into a read-only untrusted job and a trusted job, but TanStack’s postmortem records that “actions/cache@v5’s post-job save is not gated by permissions:” and that the cache scope was shared with pushes to main.11 The attacker wrote a poisoned pnpm store under the key the release workflow would compute. Whenrelease.ymlnext ran, it restored the entry; the attacker’s binaries read the runner process’s memory, extracted the OIDC token minted because the job hadid-token: write, and published to npm directly. TanStack notes that the memory-reading script was the one used in the March 2025 tj-actions compromise, and that detection came from an outside researcher about 20 minutes after publication.1145
SLSA’s requirements for isolated builds state that “It MUST NOT be possible for one build to inject false entries into a build cache used by another build”, and that the build’s output “MUST be identical whether or not the cache is used”.46
Mutable tags and third-party actions
A reference such as uses: owner/action@v1 runs whatever commit the tag names at run time. Security Lab noted in 2021 that a tag “can be changed later to point to a different changeset” if the maintainer is compromised, and called a full commit SHA “the safest way to reference a specific snapshot”.1 GitHub’s advisory for tj-actions/changed-files, CVE-2025-30066, dates that compromise to March 2025.45 Aqua Security’s advisory says that on 19 March 2026 an attacker used compromised credentials to “force-push 76 of 77 version tags in aquasecurity/trivy-action to credential-stealing malware” and to replace all seven tags of aquasecurity/setup-trivy.47 Wiz warns that “even if you hash pin an Action, if it relies on another Action with weaker pinning, you’re still exposed”.48
Secrets read from memory and logs
Security Lab reported in 2021 that GitHub scrubs from memory secrets that are not referenced in the workflow or an included action, while “the repository token, whether it is referenced or not, and any referenced secrets can be harvested by a determined attacker.”18 StepSecurity’s analysis of wfx reports two collection methods: the stealer references the complete secrets context with ${{ toJSON(secrets) }} where it can edit a workflow, and elsewhere reads the Runner.Worker process, which it says holds “every secret the job can use in decrypted form, including ones the workflow never asked for”.35 TanStack’s attacker took an OIDC token the same way, so federation removes stored keys but leaves what a running job can mint.11
Pipelines run with credentials obtained elsewhere
Several large campaigns used valid credentials to add a workflow, or a script a workflow runs, and let the repository’s CI execute it. How the credentials were obtained differs, and in several cases is unknown.
- GhostAction, September 2025. GitGuardian found that a commit titled “Add Github Actions Security workflow”, pushed to FastUUID on 2 September 2025 by the maintainer’s account, sent
secrets.PYPI_API_TOKENto an attacker’s server. The campaign touched 327 users and 817 repositories, and GitGuardian counted at least 3,325 secrets exfiltrated. It says the initial access vector remains unknown.49 - GhostAction, 2026. GitGuardian reported that from 31 August to 30 September 2026 the workflow was pushed to 772 public repositories, targeting 2,577 secrets, “using what appear to be stolen credentials”. In the runs it collected, GitHub held most for approval: “of the 3,669 runs we collected across 605 repositories, only 499 executed, in 32 repositories”, exfiltrating 26 secrets from 13 repositories. A burst from 8 to 12 October targeted more than 30,000 repositories from about 1,900 compromised accounts.50
- wfx, November 2026. StepSecurity reported that from 10 November an attacker “has been using stolen GitHub tokens” to push the stealer, then reverted the commit and deleted the run, “usually within a minute”. Fly.io confirmed how tokens issued to its GitHub App leaked; for the rest of the campaign StepSecurity says the source is “still unexplained”. The code includes persistence aimed at federation: rewriting an assumed AWS role’s trust policy to
"Principal": {"AWS": "*"}and adding Azure federated identity credentials that trust the compromised repository.35 Its 30 November update gives ranges from several analyses, including about 4,800 compromised accounts and a payload that ran in at least 1,806 repositories.35 - WPPConnect, November 2026. StepSecurity found two unsigned commits on
masterwith no pull request at 22:34 UTC on 15 November, the release workflow dispatched within a minute, and npm serving 2.4.1 from 23:31 UTC. After a researcher opened public issues, the default branches were force-pushed and the tag pointed at a look-alike commit. StepSecurity has “not established how access was obtained”.9 - Microsoft agent-framework, November 2026. Wiz reported that the publisher of malicious versions 1.26.1 and 1.26.2 “appears to have compromised a client certificate and private key for Microsoft ESRP (Engineering System Release Pipeline)”, that a first attempt from AWS was rejected by IP filtering, and that “How the credentials were obtained is not yet known.”51
StepSecurity’s summary of wfx applies to the confirmed stolen-token cases: “The attacker does not exploit a bug in GitHub Actions.”35
Loose federation
Federation fails when a relying party’s trust condition is looser than intended. Datadog Security Labs showed in July 2023 that if an AWS role trusting GitHub’s issuer lacks a sub condition, “a GitHub Action from any GitHub repository can assume the role and retrieve credentials for it”. From over 500 role ARNs in more than 275 AWS accounts, it assumed “a number of vulnerable IAM roles”, including a UK Government Digital Service role with CodeCommit push access.52 AWS now rejects, on creation or update, a GitHub trust policy whose sub condition is missing or “solely a wildcard character ( and ?) or null”. The documented check does not reject broader patterns such as `repo:my-org/, and AWS warns that without limiting sub` to a specific organisation or repository, outside repositories “are able to assume roles”.28 Under the name-only subject format, an organisation-wide pattern also depends on the organisation name staying with its owner.2
A precise condition does not help when the attacker can run a workflow the condition trusts. Google’s Cloud Threat Horizons Report for H1 2026 describes UNC6426, which obtained a developer’s GitHub token through the compromised Nx package, used a tool “designed to extract secrets from CI/CD environments by deploying malicious pipelines” to expose a GitHub service account’s credentials, and then abused the “legitimate GitHub-to-AWS OIDC trust relationship” to obtain credentials for a role named Github-Actions-CloudFormation. The role could deploy CloudFormation stacks with IAM capabilities, so the actor created a role with AdministratorAccess, going “from a stolen token to full AWS administrator permissions in less than 72 hours”.53 Mandiant calls the role “overly permissive”.53
Beyond GitHub
Red Hat’s CVE-2026-50240, published 27 August 2026 and rated Important at CVSS 8.8, describes OpenShift Pipelines-as-Code failing to “verify whether the creator of a Repository custom resource has permission to create PipelineRuns”. A namespace user with Repository and Secret create permissions “can cause PAC to execute attacker-controlled PipelineRuns as the auto-provisioned pipeline ServiceAccount, which carries ClusterRole/edit by default”, enabling “Secret read” and “potential supply chain injection in CI/CD namespaces”. Red Hat lists fixes in RHSA-2026:105845 and RHSA-2026:105922 for OpenShift Pipelines 1.23, dated 1 December 2026, and a mitigation of setting legacyPipelineRbac to false; deleting the RoleBinding alone is not enough, because the operator re-creates it.54
How common the weaknesses are
The available figures count different things. The 2022 USENIX study, in its sample of 447,238 workflows, found the 99.8 percent over-privilege rate above and that “23.7% of workflows are triggerable by a pull_request and use code from the underlying repository”.25 Those are configuration findings, not confirmed exploits. GitHub said its CodeQL preview for Actions covered “over 158,000 repositories, detecting more than 800,000 potential vulnerabilities”, with “approximately 15%” fixed by maintainers; these are alerts.55 GitGuardian’s 2026 GhostAction figure of 499 executed runs out of 3,669 collected is an observation of one campaign.50 None yields a prevalence rate. GitHub’s own stated reason for its 2026 pull_request_target default is that such vulnerabilities “are one of the most commonly exploited vulnerabilities in action workflows”.56
Four GitHub changes in 2026
- checkout v7, 18 June 2026.
actions/checkoutv7 “refuses to fetch fork pull request code in pull_request_target and workflow_run workflows” when the repository, ref or SHA points at the fork’s head or merge commit. GitHub then backported the check to supported major versions, with enforcement on 20 July 2026. Version 1 was excluded, and “Workflows pinned to a specific SHA, minor, or patch version aren’t affected by the backport”. The check does not covergitorghinrunsteps or events such asissue_comment, and can be disabled withallow-unsafe-pr-checkout.57 - Read-only cache for untrusted triggers, 26 June 2026. By default, GitHub issues a read-only cache token when the event can be triggered by non-collaborators and the run uses the default branch’s cache scope;
push,schedule,workflow_dispatch,repository_dispatch,delete,registry_packageandpage_buildkeep read-write access.4 An explicitcache-mode: writeorwrite-only“overrides the secure read-only default” and, in GitHub’s words, “reintroduces the risk of cache-poisoning”. For reusable workflows, an explicitcache-modeon the calling job or workflow limits what the called workflow can request; if the caller sets none, the called workflow can request write access even when the caller’s trigger defaults to read.26 - Workflow execution protections, generally available 17 September 2026. Actor rules set who may trigger a workflow and event rules which events may, with an evaluate mode and a REST API.56
- `pull_request_target` blocked by default, 2 December 2026. From that date GitHub Actions “will block pull_request_target workflows by default in affected public repositories unless an applicable GitHub Actions event policy explicitly allows them”. Private and internal repositories are not affected.19
Wiz’s review lists residual gaps: SHA pins taken before the backport run checkout “without any safety checks”, issue_comment bot commands remain exploitable, artifacts carry no taint marking, and local package caches on non-ephemeral self-hosted runners lie outside the cache service.39
Controls, and what each one stops
| Control | Stops, where configured and enforced | Does not stop |
|---|---|---|
| Pin actions to full commit SHAs, or use a workflow lockfile, enforced by policy | A moved tag running new code in your workflow | Unpinned dependencies the action fetches at run time; flaws in the pinned code; fixes delivered only through floating tags |
Minimal permissions: per job | Token actions the resulting permissions deny, such as pushing or dispatching | Use of secrets in scope; cache writes; OIDC minting where id-token: write is granted |
| Environments with required reviewers, self-review prevented, no admin bypass | The gated job receiving environment secrets without approval | Repository- and organisation-level secrets outside the gate; a careless or compromised approver |
Avoid pull_request_target, or never execute pull request code in it | Pwn requests through that trigger | Script injection; other privileged triggers |
| Intermediate environment variables for event data | Shell injection through run: templating | Injection into other interpreters or untrusted values used as refs |
| No self-hosted runners on public repositories; just-in-time runners on clean infrastructure | Persistence from one job into the next on the same host | What a single job does while it runs |
| Egress filtering on runners | Traffic to destinations the filter enforces against | Abuse of the job’s token through allowed endpoints such as GitHub’s API |
| OIDC subject conditions naming repository and environment, with the environment limited to protected refs | Other repositories, environments and, through the environment’s deployment rules, other refs assuming the role | A malicious run of a workflow the condition trusts |
Separate build and publish jobs; id-token: write only in a publish job that runs no project code | Build-time code minting the publishing identity | A malicious artifact built earlier and published by the clean job |
| Provenance verified against a policy for builder, source, ref and parameters | Artifacts from unexpected builders, repositories, or recorded parameters | Malicious changes that passed through the expected source and workflow |
| Immutable releases58 | Changes to an immutable release’s assets, and moving or deleting its tag while the release exists | A release that was malicious when published |
| Workflow static analysis (zizmor, actionlint, CodeQL) as a required check | Modelled patterns, before merge | Unmodelled flaws; changes that bypass the required check |
SHA pinning and lockfiles
GitHub recommends pinning to “a full-length commit SHA” because subverting it would require “a SHA-1 collision for a valid Git object payload”.20 Since 15 August 2025 administrators can enforce pinning through the allowed-actions policy and block specific actions or versions.59 On 28 October 2026 GitHub made workflow lockfiles generally available: a generated .github/workflows/actions.lock records commits “for actions and their transitive dependencies”, and an onboarded workflow runs each recorded commit “even if those references move”. GitHub adds that lockfiles “don’t determine whether a dependency is safe”.60 Pinning also holds back fixes: GitHub’s checkout protections reached @v4 users automatically but not SHA pins.57 Security Lab called the choice “a tradeoff between guaranteed supply chain integrity and auto-patching of vulnerabilities in dependencies” and suggested pairing pins with Dependabot updates whose changes are reviewed.1
Token permissions
A permissions: block turns the token into a capability list, with unlisted scopes set to none.3 It does not limit the job’s secrets, and in TanStack it did not limit cache writes.11 The library’s article on least privilege treats the principle more generally.
Environments and reviewers
When an environment requires approval, “a job cannot access environment secrets until one of the required reviewers approves it”.22 GitHub added an option to prevent self-review on 16 October 2023.61 By default, “Only one of the required reviewers needs to approve”, administrators “can bypass the protection rules”, and deployment branch rules are “matched against the GITHUB_REF of the workflow run”, which says nothing about what code a later step checks out.22 Socket notes that on Free, Pro and Team plans, required reviewers are available only for public repositories.62
OIDC conditions
A subject condition naming the repository and environment keeps other repositories and environments from assuming a role; which refs can reach that environment is decided by the environment’s deployment branch and tag rules, not by the subject.22228 The condition has to match the subject format the repository actually uses, the name-only form or the immutable form with owner and repository IDs.2 Relying parties that evaluate custom claims can also check job_workflow_ref; AWS cannot.27 They cannot tell a legitimate run from a malicious run of the same workflow, as TanStack and UNC6426 show.1153 Socket advises granting id-token: write only to “a narrow publish job that runs no project code”, because it “applies to the whole job”.62 TanStack concluded that “OIDC trusted-publisher binding has no per-publish review. Once configured, any code path in the workflow can mint a publish-capable token.”11
SLSA build levels
Under SLSA v1.0, Build L2 means a hosted platform that signs provenance, which prevents tampering after the build but can be forged by a deliberate, possibly easy, attack. Build L3 requires the platform to “prevent runs from influencing one another, even within the same project” and keep provenance signing material away from “user-defined build steps”.63 The normative requirements add ephemeral build environments and the cache rule quoted above.46 GitHub says artifact attestations alone provide Build L2, and that reusable workflows “can provide isolation between the build process and the calling workflow, to meet SLSA v1.0 Build Level 3”.5 The SLSA GitHub generator’s specification says maintainers “cannot tamper with the provenance”, while “The content of the source code is out of scope”.64
SLSA v1.0 “does not address source threats”, and dependency threats are out of scope.65 WPPConnect’s commit, wfx’s pushed scripts and GhostAction’s workflows entered as source and ran in genuine pipelines; in WPPConnect’s case the release carried accurate provenance.93550 Verification still helps when the policy checks more than a signature. SLSA’s verification guidance has the verifier compare buildType and externalParameters against expectations, and its threat model lists “Build from unofficial parameters” among the threats this catches.865 A verifier can enforce only what the attestation records and its policy checks.
In this article’s analysis, whether a given GitHub Actions build meets L3 depends on its configuration as well as the platform. A reusable-workflow setup supports the claim; a release that restores a default-branch cache other workflows can write, without verifying the entries, sits uneasily with the cache requirement, while a cache whose integrity is checked could satisfy it.464
Egress control
Harden-Runner, which its vendor StepSecurity describes as working “like an EDR for GitHub Actions runners”, monitors network, file and process activity and can block outbound traffic not on an allow-list.66 StepSecurity argues that an allow-list would stop both the bare-IP and Telegram exfiltration used by wfx.35 That is the vendor’s claim about its product. Any egress list must allow the endpoints a build needs, including GitHub’s API and package registries.
Static analysis
zizmor describes itself as “a static analysis tool for your CI/CD”,67 with audits including template-injection, dangerous-triggers, excessive-permissions, unpinned-uses and cache-poisoning.68 actionlint checks for “Script injection by potentially untrusted inputs”.69 CodeQL’s Actions queries became generally available in April 2025.55 These tools flag patterns they model when they run, and they block merges only when made required checks.
Where experts disagree
- Pin or float. Security Lab, GitHub and Wiz favour SHA pins.12048 Their cost shows in GitHub’s 2026 checkout fix, which floating tags received automatically and pins did not.57 Pins assume an organisation that reviews and merges updates; floating tags assume the action’s maintainer stays uncompromised. Lockfiles move that tradeoff without removing it.60
- Trusted publishing or human-gated tokens. Socket recommends replacing stored publish tokens with OIDC trusted publishing.62 Cline, after a stolen long-lived npm token was used, moved to OIDC publishing with no long-lived npm tokens.44 TanStack, whose attacker abused trusted publishing itself, listed “short-lived classic tokens with manual review” or provenance-source verification as options in its May 2026 postmortem.11 npm now documents a third option: a trusted publisher can be limited to staged publishing, in which a maintainer must approve each version with two-factor authentication before it goes live.67 That combines OIDC with per-publish human review, which TanStack’s options treated as alternatives.
A defensive walkthrough (illustrative)
The organisation acme, its repository acme/widget, and the pipeline below are fictional. The walkthrough follows a release pipeline’s trust decisions in order; the outcomes described are hypothetical.
Event data. A triage workflow on issues labels new issues, with permissions: write-all copied from an old template, and checks the title with title="${{ github.event.issue.title }}" inside run:. That line is the script-injection pattern Security Lab and Nx describe.1837 Rewritten:
permissions:
issues: write
jobs:
label:
runs-on: ubuntu-latest
steps:
- name: Check title format
env:
TITLE: ${{ github.event.issue.title }}
NUMBER: ${{ github.event.issue.number }}
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
run: |
re='^\[(bug|feature)\]'
if [[ ! "$TITLE" =~ $re ]]; then
gh issue edit "$NUMBER" --add-label needs-triage
fiJob permissions. With write-all, an injected command would hold a token that can write contents and use the Actions API. Events created with GITHUB_TOKEN generally do not start new runs, but workflow_dispatch and repository_dispatch always do, and pull requests it opens or updates create runs that wait for approval.23 Nx believes that is how its injectable workflow started publish.yml, and the PyTorch researchers used an actions: write token the same way.3740 With only issues: write, every other scope is set to none; the token can still manage issues, for example labelling or commenting, but cannot write contents or dispatch workflows.3
Release inputs. acme’s original release.yml runs on workflow_dispatch, accepts a ref input and checks it out. A dispatch from main has GITHUB_REF set to refs/heads/main, so a deployment-branch rule allowing main passes whatever ref the input names.22 Checkout v7’s protections cover fork pull request code in pull_request_target and workflow_run, not this.57 The revision removes the input and releases only from protected tags, and restricts who may run the workflow with an execution-protection actor rule.56 acme should confirm that the rule also covers dispatches made with GITHUB_TOKEN; the public notices do not say.
Reviewed artifact identity. The revision builds in one job and publishes in another, following Socket’s pattern.62
name: release
on:
push:
tags: ['v*']
permissions: {}
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@<full-commit-sha>
with:
persist-credentials: false
- run: npm ci --ignore-scripts
- run: npm run build
- run: npm pack
- uses: actions/upload-artifact@<full-commit-sha>
with:
name: package
path: '*.tgz'
publish:
needs: build
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
steps:
- uses: actions/download-artifact@<full-commit-sha>
with:
name: package
path: out
- uses: actions/setup-node@<full-commit-sha>
with:
node-version: 24
registry-url: https://registry.npmjs.org
- run: npm publish ./out/*.tgz --ignore-scriptsThe publish job has no checkout and runs no project scripts, so build-time code cannot mint the publishing identity. The release environment requires a reviewer with self-review prevented and no administrator bypass, and its deployment rule allows only v* tags, which acme protects so that only maintainers can create them.2262 The sample assumes an npm trusted-publisher binding for acme/widget, the file release.yml and the release environment, a GitHub-hosted runner, and npm CLI 11.5.1 or later.6 npm then generates provenance by default for trusted publishing from GitHub Actions or GitLab, but only “from a public repository” of “a public package”, and the option can be turned off.6 Consumers who verify it can check the builder, repository and ref it records. This layout still publishes whatever the build job produced from the tagged commit, so review of that commit remains the control.
Deploy identity. The docs deployment moves to its own job in a separate environment, docs, with its own reviewer and a deployment rule allowing only v* tags. Unlike the publish job, it does run repository code, a reviewed deploy script from the protected tag, while holding the cloud role. The AWS role’s condition names that environment instead of repo:acme/*; for a repository using the name-only subject format that is repo:acme/widget:environment:docs, and for one using immutable subjects the owner and repository IDs must be included.228 Because the publish job uses the release environment, it cannot satisfy this condition, and the role is limited to the documentation bucket. The subject stops other repositories and environments; the environment’s reviewer and tag rule decide which refs reach it.22
When the pipeline is the breach
The library’s rotate-everything article covers rotation in general. Pipeline compromises raise specific questions.
What to rotate. Treat as exposed every secret that was in scope for, or readable on the host of, any job that ran attacker-controlled code, including repository, organisation and environment secrets released to it. StepSecurity’s wfx guidance adds cloud access obtainable through OIDC and, on self-hosted runners, the host’s own credentials.35 Revoke stored publish tokens even where trusted publishing is configured, since “configuring a publisher revokes nothing”.62 Verify revocation against the credential itself: Cline found that the dashboard it checked “showed zero active tokens” while the exposed token remained active.44
What to check besides rotation. wfx’s code includes routines to rewrite AWS trust policies and add Azure federated credentials, both designed to outlast rotation.35 Whether they succeeded in a given account must be checked there, so review trust policies and federated credentials on roles and applications reachable from CI. TanStack purged all cache entries for all its repositories through the API on the day of the incident.11 Rebuild releases from known-good commits and compare artifacts by digest; WPPConnect’s tag was moved to a clean look-alike commit after disclosure.9
Where to look.
- Workflow run history. A gap in run numbers is a lead to reconcile with audit and runner records; StepSecurity found one repository’s run #1964 missing between #1963 and #1965 after wfx deleted it.35
- The organisation audit log, which has a
workflowscategory and covers “the last 180 days”.70 - Cloud logs of federation. CloudTrail records
AssumeRoleWithWebIdentity.71 For the agent-framework payload, Wiz notes that the Azure managed-identity and OIDC-exchanged access tokens it targeted “are valid for up to 24 hours”; the exchanged access token, not the GitHub-issued identity token, is what remains usable.51 - Registry publish records and provenance for versions published in the window.
How long the evidence lasts. Workflow runs, logs and artifacts are retained for 90 days by default. The period can be set between 1 and 90 days for public repositories and between 1 and 400 days for private ones, within limits set higher up, and a change applies only to new records. From 1 October 2026 the setting also governs checks, runs and statuses, previously kept for 400 days or more.72 Export what an investigation needs before it expires.
What to change, in order
- Start with workflows outsiders can reach (
pull_request_target,issues,issue_comment,workflow_run) and workflows that hold release or deploy identities, including copies on non-default branches; run a workflow linter on all of them.1668 - For each reachable workflow, remove
${{ }}event data fromrun:and set jobpermissionsto the minimum; set the organisation default to read-only.183 - For each release workflow, list what it restores or downloads (caches, artifacts, inputs) and who can write those; set
cache-modedeliberately.26 - Move release and deploy credentials into gated environments, or OIDC with conditions naming repository and a dedicated environment. Give publishing identities only to jobs that run no project code, and deploy identities only to jobs that run reviewed code from protected refs.222862
- Decide which public repositories need
pull_request_targetand use execution protections to allow it explicitly or not at all.19 - Pin or lock action dependencies where updates can be reviewed promptly, keep self-hosted runners off public repositories, and export logs beyond their retention.602072
Conclusion
Code running in a build job inherits whatever that job holds: secrets in scope, a repository token, possibly the right to mint cloud and registry credentials, access to shared caches, and possibly a publishing identity. How much that is depends on configuration, and for release jobs it can exceed what a single developer token would grant. The 2025 and 2026 cases fall into two groups. In the first, workflows let outsiders’ input reach privileged jobs (TanStack, Cline, Nx), as the PyTorch research of 2023 had shown on self-hosted runners. In the second, valid accounts or tokens were used to make pipelines run attacker code: wfx with stolen tokens, and GhostAction with what GitGuardian in 2026 called apparently stolen credentials, after its 2025 report had left the initial vector unknown. WPPConnect’s documented facts are commits pushed to master with no pull request and a release run through the project’s pipeline; how access was obtained has not been established. GitHub’s 2026 changes narrowed the first group without closing it, and do little against the second.
The controls that mattered in these cases separate three decisions: whether untrusted input can execute, what the executing job holds, and what registries and consumers accept from it. Pinning, scoped tokens, OIDC conditions and provenance each address one of these and leave the others. The practical aim is that no single workflow both accepts outside input and holds the keys to what ships.
Footnotes
- Jaroslav Lobačevski, “Keeping your GitHub Actions and workflows secure Part 3: How to trust your building blocks”, GitHub Security Lab, 5 August 2021. https://securitylab.github.com/resources/github-actions-building-blocks/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- “OpenID Connect” reference, GitHub Docs, accessed 3 December 2026. https://docs.github.com/en/actions/reference/security/oidc (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11
- “Workflow syntax for GitHub Actions”, GitHub Docs, accessed 3 December 2026. https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5
- “Read-only Actions cache for untrusted triggers”, GitHub Changelog, 26 June 2026. https://github.blog/changelog/2026-06-26-read-only-actions-cache-for-untrusted-triggers/ (opens in a new tab) ↩1 ↩2 ↩3
- “Artifact attestations”, GitHub Docs, accessed 3 December 2026. https://docs.github.com/en/actions/concepts/security/artifact-attestations (opens in a new tab) ↩1 ↩2 ↩3
- “Trusted publishing for npm packages”, npm Docs, accessed 3 December 2026. https://docs.npmjs.com/trusted-publishers/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- “Staged publishing for npm packages”, npm Docs, accessed 3 December 2026. https://docs.npmjs.com/staged-publishing (opens in a new tab) ↩1 ↩2
- SLSA v1.0, “Verifying artifacts”, OpenSSF SLSA project, accessed 3 December 2026. https://slsa.dev/spec/v1.0/verifying-artifacts (opens in a new tab) ↩1 ↩2 ↩3
- “WPPConnect Compromised: Malicious Releases Steal Secrets and WhatsApp Sessions Through the Project’s Own Pipeline”, StepSecurity, 16 November 2026. https://www.stepsecurity.io/blog/wppconnect-compromised-malicious-releases-steal-secrets-and-whatsapp-sessions (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- GHSA-g7cv-rxg3-hmpx, security advisory for malicious @tanstack/* versions, TanStack/router on GitHub, May 2026. https://github.com/TanStack/router/security/advisories/GHSA-g7cv-rxg3-hmpx (opens in a new tab) ↩
- “Postmortem: TanStack npm supply-chain compromise”, TanStack, last updated 15 May 2026. https://tanstack.com/blog/npm-supply-chain-compromise-postmortem (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9
- “The State of Secrets Sprawl 2026”, GitGuardian, 2026. https://www.gitguardian.com/state-of-secrets-sprawl-report-2026 (opens in a new tab) ↩
- “SUNSPOT: An Implant in the Build Process”, CrowdStrike Intelligence Team, 11 January 2021. https://www.crowdstrike.com/en-us/blog/sunspot-malware-technical-analysis/ (opens in a new tab) ↩
- “Events that trigger workflows”, GitHub Docs, accessed 3 December 2026. https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5
- Jaroslav Lobačevski, “Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests”, GitHub Security Lab, 3 August 2021. https://securitylab.github.com/resources/github-actions-preventing-pwn-requests/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6
- Alvaro Munoz, “Keeping your GitHub Actions and workflows secure Part 4: New vulnerability patterns and mitigation strategies”, GitHub Security Lab, 16 January 2025. https://securitylab.github.com/resources/github-actions-new-patterns-and-mitigations/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6
- “Managing GitHub Actions settings for a repository”, GitHub Docs, accessed 3 December 2026. https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository (opens in a new tab) ↩1 ↩2
- Jaroslav Lobačevski, “Keeping your GitHub Actions and workflows secure Part 2: Untrusted input”, GitHub Security Lab, 4 August 2021. https://securitylab.github.com/resources/github-actions-untrusted-input/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7
- “pull_request_target enforcement begins December 2”, GitHub Changelog, 2 December 2026. https://github.blog/changelog/2026-12-02-github-actions-will-block-pull-request-target-by-default-in-affected-public-repo/ (opens in a new tab) ↩1 ↩2 ↩3
- “Secure use reference”, GitHub Docs, accessed 3 December 2026. https://docs.github.com/en/actions/reference/security/secure-use (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7
- “REST API endpoints for GitHub Actions Secrets”, GitHub Docs, accessed 3 December 2026. https://docs.github.com/en/rest/actions/secrets (opens in a new tab) ↩
- “Deployments and environments”, GitHub Docs, accessed 3 December 2026. https://docs.github.com/en/actions/reference/workflows-and-actions/deployments-and-environments (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8
- “GITHUB_TOKEN”, GitHub Docs, accessed 3 December 2026. https://docs.github.com/en/actions/concepts/security/github_token (opens in a new tab) ↩1 ↩2
- “GitHub Actions: Updating the default GITHUB_TOKEN permissions to read-only”, GitHub Changelog, 2 February 2023. https://github.blog/changelog/2023-02-02-github-actions-updating-the-default-github_token-permissions-to-read-only/ (opens in a new tab) ↩
- Igibek Koishybayev et al., “Characterizing the Security of Github CI Workflows”, 31st USENIX Security Symposium, 2022. https://www.usenix.org/conference/usenixsecurity22/presentation/koishybayev (opens in a new tab) ↩1 ↩2
- “Dependency caching reference”, GitHub Docs, accessed 3 December 2026. https://docs.github.com/en/actions/reference/workflows-and-actions/dependency-caching (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- “Configuring OpenID Connect in Amazon Web Services”, GitHub Docs, accessed 3 December 2026. https://docs.github.com/en/actions/how-tos/secure-your-work/security-harden-deployments/oidc-in-aws (opens in a new tab) ↩1 ↩2
- “Create a role for OpenID Connect federation”, including “Configuring a role for GitHub OIDC identity provider”, AWS Identity and Access Management User Guide, accessed 3 December 2026. https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-idp_oidc.html (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5
- “GitLab CI/CD variables”, GitLab Docs, accessed 3 December 2026. https://docs.gitlab.com/ci/variables/ (opens in a new tab) ↩
- “Merge request pipelines”, GitLab Docs, accessed 3 December 2026. https://docs.gitlab.com/ci/pipelines/merge_request_pipelines/ (opens in a new tab) ↩
- “GitLab CI/CD job token”, GitLab Docs, accessed 3 December 2026. https://docs.gitlab.com/ci/jobs/ci_job_token/ (opens in a new tab) ↩
- “OpenID Connect (OIDC) Authentication Using ID Tokens”, GitLab Docs, accessed 3 December 2026. https://docs.gitlab.com/ci/secrets/id_token_authentication/ (opens in a new tab) ↩
- OWASP Top 10 CI/CD Security Risks, OWASP Foundation, accessed 3 December 2026. https://owasp.org/www-project-top-10-ci-cd-security-risks/ (opens in a new tab) ↩
- CICD-SEC-4: Poisoned Pipeline Execution (PPE), OWASP Foundation, accessed 3 December 2026. https://owasp.org/www-project-top-10-ci-cd-security-risks/CICD-SEC-04-Poisoned-Pipeline-Execution (opens in a new tab) ↩
- “WFX Phantom: The GitHub Actions Secret Stealer That Deletes Its Tracks”, StepSecurity, 12 November 2026, updated 30 November 2026. https://www.stepsecurity.io/blog/wfx-phantom-the-github-actions-secret-stealer (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10
- actions/checkout README, actions/checkout on GitHub, accessed 3 December 2026. https://github.com/actions/checkout (opens in a new tab) ↩
- GHSA-cxm3-wv7p-598c, “Malicious versions of Nx and some supporting plugins were published”, nrwl/nx on GitHub, August 2025. https://github.com/nrwl/nx/security/advisories/GHSA-cxm3-wv7p-598c (opens in a new tab) ↩1 ↩2 ↩3
- Siddharth Muralee et al., “ARGUS: A Framework for Staged Static Taint Analysis of GitHub Workflows and Actions”, 32nd USENIX Security Symposium, 2023. https://www.usenix.org/conference/usenixsecurity23/presentation/muralee (opens in a new tab) ↩
- “The Pwn Request Reckoning: What Still Works Against GitHub Actions”, Wiz, 26 October 2026. https://www.wiz.io/blog/github-actions-security-pwn-request-reckoning (opens in a new tab) ↩1 ↩2
- John Stawinski, “Playing with Fire: How We Executed a Critical Supply Chain Attack on PyTorch”, 11 January 2024. https://johnstawinski.com/2024/01/11/playing-with-fire-how-we-executed-a-critical-supply-chain-attack-on-pytorch/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- Adnan Khan, “The Monsters in Your Build Cache: GitHub Actions Cache Poisoning”, 6 May 2024 (with a January 2025 update). https://adnanthekhan.com/2024/05/06/the-monsters-in-your-build-cache-github-actions-cache-poisoning/ (opens in a new tab) ↩1 ↩2
- Adnan Khan, “Cacheract: The Monster in your Build Cache”, December 2024. https://adnanthekhan.com/2024/12/21/cacheract-the-monster-in-your-build-cache/ (opens in a new tab) ↩
- Adnan Khan, “Clinejection: Compromising Cline’s Production Releases just by Prompting an Issue Triager”, 9 February 2026. https://adnanthekhan.com/posts/clinejection (opens in a new tab) ↩1 ↩2
- Saoud Rizwan, “Post-mortem: Unauthorized Cline CLI npm publish on February 17, 2026”, Cline, 24 February 2026. https://cline.bot/blog/post-mortem-unauthorized-cline-cli-npm (opens in a new tab) ↩1 ↩2 ↩3
- GHSA-mrrh-fwg8-r2c3 (CVE-2025-30066), tj-actions/changed-files, GitHub Advisory Database, 15 March 2025. https://github.com/advisories/GHSA-mrrh-fwg8-r2c3 (opens in a new tab) ↩1 ↩2
- SLSA v1.0, “Producing artifacts” (requirements), OpenSSF SLSA project, accessed 3 December 2026. https://slsa.dev/spec/v1.0/requirements (opens in a new tab) ↩1 ↩2 ↩3
- GHSA-69fq-xp46-6x23, “Trivy ecosystem supply chain temporarily compromised”, aquasecurity/trivy on GitHub, March 2026. https://github.com/aquasecurity/trivy/security/advisories/GHSA-69fq-xp46-6x23 (opens in a new tab) ↩
- “How to Harden GitHub Actions: An Updated Guide”, Wiz, 15 April 2026. https://www.wiz.io/blog/github-actions-security-guide (opens in a new tab) ↩1 ↩2
- “The GhostAction Campaign: 3,325 Secrets Stolen Through Compromised GitHub Workflows”, GitGuardian, 5 September 2025. https://blog.gitguardian.com/ghostaction-campaign-3-325-secrets-stolen/ (opens in a new tab) ↩
- “The campaign that never stopped: tracking GhostAction from 2025 to 2026”, GitGuardian, 7 October 2026, updated 13 October 2026. https://blog.gitguardian.com/ghostaction-github-actions-supply-chain-attack-returns/ (opens in a new tab) ↩1 ↩2 ↩3
- “Microsoft agent-framework Compromised: Credential Stealer Targets Azure and CI Pipelines”, Wiz, 17 November 2026. https://www.wiz.io/blog/malicious-version-of-microsofts-agent-framework-published-to-pypi (opens in a new tab) ↩1 ↩2
- Christophe Tafani-Dereeper, “No keys attached: Exploring GitHub-to-AWS keyless authentication flaws”, Datadog Security Labs, 27 July 2023. https://securitylabs.datadoghq.com/articles/exploring-github-to-aws-keyless-authentication-flaws/ (opens in a new tab) ↩
- Cloud Threat Horizons Report H1 2026, Google Cloud, 2026, section “From CI/CD to Cloud Compromise: Real-World Breach via OpenID Connect Abuse”. https://services.google.com/fh/files/misc/cloud_threat_horizons_report_h12026.pdf (opens in a new tab) ↩1 ↩2 ↩3
- CVE-2026-50240, Red Hat security data (OpenShift Pipelines-as-Code), public 27 August 2026, accessed 3 December 2026. https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2026-50240.json (opens in a new tab) ↩
- “GitHub Actions workflow security analysis with CodeQL is now generally available”, GitHub Changelog, 22 April 2025. https://github.blog/changelog/2025-04-22-github-actions-workflow-security-analysis-with-codeql-is-now-generally-available (opens in a new tab) ↩1 ↩2
- “Workflow execution protections in GitHub Actions generally available”, GitHub Changelog, 17 September 2026, editor’s note 21 October 2026. https://github.blog/changelog/2026-09-17-workflow-execution-protections-in-github-actions-generally-available/ (opens in a new tab) ↩1 ↩2 ↩3
- “Safer pull_request_target defaults for GitHub Actions checkout”, GitHub Changelog, 18 June 2026, editor’s note 15 July 2026. https://github.blog/changelog/2026-06-18-safer-pull_request_target-defaults-for-github-actions-checkout (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- “Immutable releases”, GitHub Docs, accessed 3 December 2026. https://docs.github.com/en/code-security/concepts/supply-chain-security/immutable-releases (opens in a new tab) ↩
- “GitHub Actions policy now supports blocking and SHA pinning actions”, GitHub Changelog, 15 August 2025. https://github.blog/changelog/2025-08-15-github-actions-policy-now-supports-blocking-and-sha-pinning-actions/ (opens in a new tab) ↩
- “GitHub Actions workflow lockfiles are generally available”, GitHub Changelog, 28 October 2026. https://github.blog/changelog/2026-10-28-github-actions-workflow-lockfiles-are-generally-available/ (opens in a new tab) ↩1 ↩2 ↩3
- “Actions: Prevent self-reviews for secure deployments across Actions environments”, GitHub Changelog, 16 October 2023. https://github.blog/changelog/2023-10-16-actions-prevent-self-reviews-for-secure-deployments-across-actions-environments/ (opens in a new tab) ↩
- “Hardening GitHub Actions Against Insider Threats”, Socket, 19 November 2026. https://socket.dev/blog/hardening-github-actions-against-insider-threats (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7
- SLSA v1.0, “Security levels”, OpenSSF SLSA project, accessed 3 December 2026. https://slsa.dev/spec/v1.0/levels (opens in a new tab) ↩
- “SLSA GitHub generator: specifications”, slsa-framework/slsa-github-generator on GitHub, accessed 3 December 2026. https://github.com/slsa-framework/slsa-github-generator/blob/main/SPECIFICATIONS.md (opens in a new tab) ↩
- SLSA v1.0, “Threats & mitigations”, OpenSSF SLSA project, accessed 3 December 2026. https://slsa.dev/spec/v1.0/threats (opens in a new tab) ↩1 ↩2
- Harden-Runner, step-security/harden-runner on GitHub, accessed 3 December 2026. https://github.com/step-security/harden-runner (opens in a new tab) ↩
- zizmor documentation, “Welcome”, accessed 3 December 2026. https://docs.zizmor.sh/ (opens in a new tab) ↩
- zizmor documentation, “Audit Rules”, accessed 3 December 2026. https://docs.zizmor.sh/audits/ (opens in a new tab) ↩1 ↩2
- actionlint, “Checks”, rhysd/actionlint on GitHub, accessed 3 December 2026. https://github.com/rhysd/actionlint/blob/main/docs/checks.md (opens in a new tab) ↩
- “Reviewing the audit log for your organization”, GitHub Docs, accessed 3 December 2026. https://docs.github.com/en/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/reviewing-the-audit-log-for-your-organization (opens in a new tab) ↩
- “Logging IAM and AWS STS API calls with AWS CloudTrail”, AWS Identity and Access Management User Guide, accessed 3 December 2026. https://docs.aws.amazon.com/IAM/latest/UserGuide/cloudtrail-integration.html (opens in a new tab) ↩
- “Configuring the retention period for checks, workflow runs, commit statuses, artifacts, and logs in your organization”, GitHub Docs, accessed 3 December 2026. https://docs.github.com/en/organizations/managing-organization-settings/configuring-the-retention-period-for-github-actions-artifacts-and-logs-in-your-organization (opens in a new tab) ↩1 ↩2

SecSIG