Security guidance from GitHub Security Lab and Semgrep warned that unsafe GitHub Actions patterns can let attackers execute code in CI, steal secrets, and modify repositories. A key risk is using the privileged pull_request_target trigger while also checking out code from an untrusted forked pull request, which runs attacker-controlled code with target-repository secrets and potentially write-capable GITHUB_TOKEN permissions. The guidance also highlighted shell injection risks when workflows interpolate untrusted GitHub context fields such as pull request titles directly into run steps, as well as the danger of re-enabling deprecated insecure commands through ACTIONS_ALLOW_UNSECURE_COMMANDS.
The recommended mitigations focus on separating trust boundaries inside workflows. GitHub Security Lab advised using pull_request for untrusted forked PRs because it withholds secrets and write access, reserving pull_request_target only for limited privileged tasks such as labeling or commenting. It also recommended split-workflow designs in which untrusted PR code runs in one workflow and a separate workflow_run job consumes only safe artifact data, while warning that artifacts produced from untrusted PRs must still be treated as untrusted. Additional hardening steps included auditing third-party Actions, carefully handling environment variables and other untrusted inputs, enforcing branch protections, and scanning workflow files with Semgrep rules.

Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.
4 events from the most recent confirmed update back to the earliest known activity.
Semgrep published a blog post describing common GitHub Actions risks, including shell injection via untrusted GitHub context fields, unsafe pull_request_target usage with untrusted code checkout, and insecure command re-enablement through ACTIONS_ALLOW_UNSECURE_COMMANDS. The post recommended mitigations such as treating context data as untrusted, limiting pull_request_target, auditing third-party Actions, and scanning workflows with Semgrep rules.
GitHub Security Lab released Part 3 of its GitHub Actions security series covering how to trust workflow building blocks. The publication expanded its documented recommendations for securing GitHub Actions components and dependencies.
GitHub Security Lab released Part 2 of its GitHub Actions security series focused on risks from untrusted input in workflows. This marked a further disclosure of GitHub Actions security pitfalls and defensive practices.
GitHub Security Lab published guidance explaining that combining the privileged pull_request_target trigger with an explicit checkout of untrusted pull request code can let attackers execute code, steal secrets, or gain repository write access. The post recommended safer split-workflow designs using pull_request for untrusted code and workflow_run for privileged follow-up actions.
Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.
4 references tracked. Mallory keeps watching after this page renders.
semgrep.dev
Open sourcesecuritylab.github.com
Open sourcesecuritylab.github.com
Open sourcesecuritylab.github.com
Open sourceMap indicators from this story to your assets and identify affected systems in minutes.
Every observed campaign, victim, and pivot linked to actors named in this story.
Malware, exploits, and IOCs connected to the activity described here.
YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Get matching new stories delivered to your team as they break — not the next morning.
Ask questions about this story and take action on the answers.