Skip to content

fix(template): suppress intentional mutable-action-tag SAST finding#68

Merged
CybotTM merged 1 commit into
mainfrom
feat/retro-pin-template-actions
Jul 4, 2026
Merged

fix(template): suppress intentional mutable-action-tag SAST finding#68
CybotTM merged 1 commit into
mainfrom
feat/retro-pin-template-actions

Conversation

@CybotTM

@CybotTM CybotTM commented Jul 4, 2026

Copy link
Copy Markdown
Member

Summary

Suppress the github-actions-mutable-action-tag SAST finding on the five uses: …@vN lines in the CI template, using inline # nosemgrep with a rationale rather than pinning the template to SHAs.

Why not pin

The template's own header documents the mutable major tags as intentional convenient defaults, with instructions for consumers to pin to a SHA on copy. It is a copy-paste starting point, not a live workflow, so pinning the template contradicts its design and adds Renovate churn. The # nosemgrep markers record that the mutable default is deliberate; the header now says to drop the marker when pinning.

Context

The org SAST (opengrep --config auto --error --severity WARNING, from netresearch/typo3-ci-workflows) recently began enforcing this rule, so it now fails on every PR to this repo — including the unrelated docs PR #67. This unblocks both.

Verification

  • opengrep --config auto --severity WARNING skills/ — 5 findings → 0 after the change.
  • yamllint -c .yamllint.yml on the template — clean.

Test plan

  • Local opengrep re-scan: 0 findings
  • yamllint clean
  • Commit GPG-signed + DCO signed-off
  • CI green (composer-audit / SAST (Opengrep), lint)

Copilot AI review requested due to automatic review settings July 4, 2026 12:10
github-actions[bot]
github-actions Bot previously approved these changes Jul 4, 2026
@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds # nosemgrep suppression comments to several GitHub Actions steps in the php-modernization.yml template to prevent SAST tools from flagging the intentional use of mutable major tags. The reviewer recommends specifying the exact Semgrep rule ID (github-actions-mutable-action-tag) instead of using blanket # nosemgrep suppressions to avoid accidentally silencing other unrelated security or quality findings on those lines.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread skills/php-modernization/templates/github-actions/php-modernization.yml Outdated
Comment thread skills/php-modernization/templates/github-actions/php-modernization.yml Outdated
Comment thread skills/php-modernization/templates/github-actions/php-modernization.yml Outdated
Comment thread skills/php-modernization/templates/github-actions/php-modernization.yml Outdated
Comment thread skills/php-modernization/templates/github-actions/php-modernization.yml Outdated
Comment thread skills/php-modernization/templates/github-actions/php-modernization.yml Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Suppresses the github-actions-mutable-action-tag SAST finding in the PHP modernization GitHub Actions workflow template by documenting intentional mutable major tags and adding inline # nosemgrep markers, aligning with the template’s “copy then pin” design.

Changes:

  • Expanded the template header to explain why mutable major tags are intentional in this template and how consumers should handle pinning.
  • Added inline # nosemgrep suppressions to the five uses: …@vN action references to silence the SAST rule.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread skills/php-modernization/templates/github-actions/php-modernization.yml Outdated
Comment thread skills/php-modernization/templates/github-actions/php-modernization.yml Outdated
Comment thread skills/php-modernization/templates/github-actions/php-modernization.yml Outdated
Comment thread skills/php-modernization/templates/github-actions/php-modernization.yml Outdated
Comment thread skills/php-modernization/templates/github-actions/php-modernization.yml Outdated
The org SAST (opengrep --config auto) started enforcing
github-actions-mutable-action-tag and flags the five @vn tags in this
CI template on every PR. The mutable majors are an intentional, documented
default for a copy-paste template (consumers pin on copy — see the header),
so suppress the finding inline with `# nosemgrep` and a rationale rather
than pinning the template itself. Verified with a local
`opengrep --config auto --severity WARNING` re-scan: 5 findings -> 0.

Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
@sonarqubecloud

sonarqubecloud Bot commented Jul 4, 2026

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@CybotTM
CybotTM merged commit fd31812 into main Jul 4, 2026
21 checks passed
@CybotTM
CybotTM deleted the feat/retro-pin-template-actions branch July 4, 2026 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants