Skip to content

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

Closed
anupamme wants to merge 1 commit into
spring-projects:mainfrom
anupamme:fix-repo-spring-data-build-pin-mutable-action-tag-maven-artifactory-deploy
Closed

harden: github actions step uses a mutable tag or branc... in...#2931
anupamme wants to merge 1 commit into
spring-projects:mainfrom
anupamme:fix-repo-spring-data-build-pin-mutable-action-tag-maven-artifactory-deploy

Conversation

@anupamme

Copy link
Copy Markdown

Summary

Harden input handling in actions/maven-artifactory-deploy/action.yaml (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 actions/maven-artifactory-deploy/action.yaml:138
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 Java service - vulnerabilities in servlets/controllers are remotely exploitable.

Changes

  • actions/maven-artifactory-deploy/action.yaml

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
@mp911de

mp911de commented Aug 24, 2026

Copy link
Copy Markdown
Member

This is a deliberate design to reduce maintenance effort. If someone is able to tamper this repository, we have a bigger problem.

@mp911de mp911de closed this Aug 24, 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.

3 participants