Skip to content

ci: derive Go version from go.mod in security workflow#721

Merged
dlevy-msft-sql merged 2 commits intodependabot/go_modules/golang.org/x/sys-0.42.0from
copilot/sub-pr-716
Mar 16, 2026
Merged

ci: derive Go version from go.mod in security workflow#721
dlevy-msft-sql merged 2 commits intodependabot/go_modules/golang.org/x/sys-0.42.0from
copilot/sub-pr-716

Conversation

Copy link
Contributor

Copilot AI commented Mar 16, 2026

The Security Scanning workflow had a hard-coded Go patch version (1.25.7), requiring a separate workflow edit every time go.mod is updated — and creating drift risk where govulncheck runs against a different Go version than the module declares.

Changes

  • .github/workflows/security.yml: Replace go-version: '1.25.7' with go-version-file: go.mod in the actions/setup-go@v6 step, making go.mod the single source of truth.
# Before
- name: Setup Go
  uses: actions/setup-go@v6
  with:
    go-version: '1.25.7'

# After
- name: Setup Go
  uses: actions/setup-go@v6
  with:
    go-version-file: go.mod

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

…rsion

Co-authored-by: dlevy-msft-sql <194277063+dlevy-msft-sql@users.noreply.github.com>
Copilot AI changed the title [WIP] Update golang.org/x/sys from 0.41.0 to 0.42.0 ci: derive Go version from go.mod in security workflow Mar 16, 2026
Copilot AI requested a review from dlevy-msft-sql March 16, 2026 20:26
@dlevy-msft-sql dlevy-msft-sql marked this pull request as ready for review March 16, 2026 20:27
@dlevy-msft-sql dlevy-msft-sql merged commit baa2829 into dependabot/go_modules/golang.org/x/sys-0.42.0 Mar 16, 2026
3 checks passed
@dlevy-msft-sql dlevy-msft-sql deleted the copilot/sub-pr-716 branch March 16, 2026 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants