Claude Code GitHub Action Flaws Exposed CI/CD Secrets and Enabled Repo Takeover
Supply Chain Risk · 4 sources · Updated 4mo ago · First seen Jun 4, 2026

Researchers disclosed multiple security flaws in Anthropic’s Claude Code GitHub Action that could let attackers compromise public repositories and expose CI/CD secrets through a single malicious GitHub issue or other untrusted content. One issue, reported by RyotaK of GMO Flatt Security, stemmed from an authorization bypass that trusted any GitHub actor whose name ended in [bot], allowing attacker-controlled GitHub Apps to trigger workflows and inject malicious prompts. Anthropic said the bug could lead to disclosure of environment secrets, including credentials used to obtain OIDC tokens and Claude GitHub App installation tokens with write access, creating a path to repository takeover and broader supply-chain compromise.
Microsoft Threat Intelligence separately showed that Claude Code’s Read tool was not sandboxed like its Bash tool, enabling access to sensitive runner data such as /proc/self/environ and leakage of secrets including ANTHROPIC_API_KEY. In lab testing, Microsoft demonstrated prompt-injection attacks that bypassed model safeguards and GitHub secret scanning to exfiltrate credentials through logs, comments, or external channels. Anthropic fixed the authorization issue within days of disclosure and later added hardening in claude-code-action v1.0.94, while the /proc exposure was mitigated in Claude Code v2.1.128 by blocking access to sensitive procfs files; defenders were urged to treat AI-enabled CI/CD workflows processing untrusted issues, pull requests, and comments as high risk.
Why it matters
Impact assessment
Claude Code GitHub Action flaws exposed a high-risk path for public repository compromise, CI/CD secret leakage, and potential downstream supply-chain abuse. The most affected organizations are software teams using AI-enabled GitHub Actions that process untrusted issues, pull requests, or comments, especially workflows granting repository write permissions or access to cloud and third-party secrets.
The impact ranges from credential disclosure to repository takeover and malicious code or content insertion. Scope is potentially broad across public repositories using vulnerable Claude Code Action configurations, though exploitation depends on workflow design; the reporting includes lab-demonstrated exploitation and a credible single-issue attack path, but no confirmed large-scale in-the-wild campaign was cited.
Affected populations
- Organizations using Anthropic Claude Code GitHub Action in CI/CD or repository automation.
- Public repositories that allow workflows to process untrusted GitHub content.
- Teams using AI agents for issue triage, PR review, slash commands, labeling, or automated code/documentation changes.
- Repositories using permissive settings such as
allowed_non_write_users: "*".
Severity and business risk
- Secret exposure can include
ANTHROPIC_API_KEY, GitHubGITHUB_TOKEN, OIDC-related credentials, cloud credentials, package publishing tokens, and third-party API keys. - Successful exploitation can enable write access to repository code, issues, pull requests, and workflows.
- Repository takeover creates risk of malicious commits, workflow tampering, documentation-site XSS, and supply-chain compromise.
- Public workflow summaries and logs can become exfiltration channels, increasing reputational and operational risk.
Scope and exploitation status
- Exposure is not limited to Anthropic’s own repository; any public repo using the affected action and unsafe trust boundaries is at risk.
- Microsoft documented prompt-injection exploitation in lab conditions.
- RyotaK demonstrated a single malicious GitHub issue attack path against vulnerable public repositories.
- The story references broader real-world prompt-injection abuse against AI-enabled CI/CD workflows, but does not provide confirmed mass exploitation of this specific flaw.


