Skip to content

harden: github actions step uses a mutable tag or branc... in... - #243

Closed
anupamme wants to merge 1 commit into
coderaiser:masterfrom
anupamme:fix-repo-putout-pin-github-actions-to-commit-sha
Closed

harden: github actions step uses a mutable tag or branc... in...#243
anupamme wants to merge 1 commit into
coderaiser:masterfrom
anupamme:fix-repo-putout-pin-github-actions-to-commit-sha

Conversation

@anupamme

Copy link
Copy Markdown

Summary

Harden input handling in packages/eslint-plugin-putout/eslint-fixture/nodejs.yml (flagged by semgrep).

Vulnerability

Field Value
ID yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag
Severity HIGH
Scanner semgrep
Rule yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag
File packages/eslint-plugin-putout/eslint-fixture/nodejs.yml:15
Assessment Defensive hardening

Description: GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608.

Threat Model Context

This is a private Node.js application (not published to npm). Vulnerabilities affect this application's own runtime only.

Changes

  • packages/eslint-plugin-putout/eslint-fixture/nodejs.yml

Behavior Preservation

The change is scoped to 1 file on the vulnerable path; it only tightens handling of untrusted input and leaves valid inputs unaffected.


This patch removes an exploit primitive — a code pattern that, while not independently exploitable today, could be chained with other weaknesses by automated exploit-development tooling. Proactive removal of such primitives raises the bar against increasingly capable automated attack tools.


Automated security fix by OrbisAI Security

…ithub-actions-mutable-action-tag security vulnerability

Automated security fix generated by OrbisAI Security
@coderaiser

Copy link
Copy Markdown
Owner

This is fixture for tests, anyways thank you!

Just updated @putout/plugin-github
with:

This is the place where github action updates lives.

@coderaiser coderaiser closed this Aug 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants