Skip to content

Bump actions/setup-go from 6 to 7 - #3547

Merged
GromNaN merged 1 commit into
5.xfrom
dependabot/github_actions/actions/setup-go-7
Jul 27, 2026
Merged

Bump actions/setup-go from 6 to 7#3547
GromNaN merged 1 commit into
5.xfrom
dependabot/github_actions/actions/setup-go-7

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 16, 2026

Copy link
Copy Markdown
Contributor

Bumps actions/setup-go from 6 to 7.

Release notes

Sourced from actions/setup-go's releases.

v7.0.0

What's Changed

New Contributors

Full Changelog: actions/setup-go@v6...v7.0.0

v6.5.0

What's Changed

Dependency update

New Contributors

Full Changelog: actions/setup-go@v6...v6.5.0

v6.4.0

What's Changed

Enhancement

Dependency update

Documentation update

New Contributors

Full Changelog: actions/setup-go@v6...v6.4.0

v6.3.0

What's Changed

Full Changelog: actions/setup-go@v6...v6.3.0

v6.2.0

What's Changed

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [actions/setup-go](https://github.com/actions/setup-go) from 6 to 7.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](actions/setup-go@v6...v7)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code labels Jul 16, 2026
@dependabot
dependabot Bot requested a review from a team as a code owner July 16, 2026 21:32
@dependabot
dependabot Bot requested a review from paulinevos July 16, 2026 21:32
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code labels Jul 16, 2026

- name: Set up Go
uses: actions/setup-go@v6
uses: actions/setup-go@v7

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Semgrep identified an issue in your code:

actions/setup-go@v7 uses a movable tag, so a repointed v7 release could run attacker-controlled code in this CI job.

More details about this

actions/setup-go@v7 pulls the setup-go action by a movable tag, not a specific commit. If the owner of actions/setup-go or anyone who gains control of that repository retags v7 to a different commit, this workflow will run the new code during the Set up Go step before go install and the validation scripts execute.

A plausible attack looks like this:

  1. An attacker compromises the repository that publishes actions/setup-go and repoints the v7 tag to a malicious commit.
  2. A pull request that touches skills/** or this workflow triggers Validate Skills.
  3. GitHub resolves uses: actions/setup-go@v7 to the attacker-controlled commit and runs it on the ubuntu-latest runner.
  4. That malicious action can read the checked-out repository from the earlier actions/checkout@v7 step, inspect workflow data like ${{ github.base_ref }}, and tamper with later commands such as go install github.com/agent-ecosystem/skill-validator/...@latest or the validate-skills.sh run.
  5. The attacker now has code execution inside your CI job and can silently alter validation results or exfiltrate any data available to this workflow's token and workspace.

Because the reference here is @v7, the exact code that runs can change over time without any change in this repository.

To resolve this comment:

✨ Commit fix suggestion
  1. Replace the mutable action reference with a full 40-character commit SHA in the uses line for this step.
    Change uses: actions/setup-go@v7 to uses: actions/setup-go@<full-commit-sha> # v7.

  2. Use the commit SHA from the exact actions/setup-go release you intend to keep using, not the version tag alone.
    For example, the final format should look like uses: actions/setup-go@8f1526c3... # v7.

  3. Keep the version comment after the SHA so future updates are easier to review.
    Pinning to a commit SHA prevents the action owner from silently moving v7 to different code later.

💬 Ignore this finding

Reply with Semgrep commands to ignore this finding.

  • /fp <comment> for false positive
  • /ar <comment> for acceptable risk
  • /other <comment> for all other reasons

Alternatively, triage in Semgrep AppSec Platform to ignore the finding created by github-actions-mutable-action-tag.

🛟 Help? Slack #semgrep-help or go/semgrep-help.

Resolution Options:

  • Fix the code
  • Reply /fp $reason (if security gap doesn’t exist)
  • Reply /ar $reason (if gap is valid but intentional; add mitigations/monitoring)
  • Reply /other $reason (e.g., test-only)

You can view more details about this finding in the Semgrep AppSec Platform.

@GromNaN
GromNaN merged commit 27d4238 into 5.x Jul 27, 2026
24 of 32 checks passed
@GromNaN
GromNaN deleted the dependabot/github_actions/actions/setup-go-7 branch July 27, 2026 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code github

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant