Skip to content

deps(deps): bump golang.org/x/sys from 0.41.0 to 0.42.0#716

Merged
dlevy-msft-sql merged 3 commits intomainfrom
dependabot/go_modules/golang.org/x/sys-0.42.0
Mar 16, 2026
Merged

deps(deps): bump golang.org/x/sys from 0.41.0 to 0.42.0#716
dlevy-msft-sql merged 3 commits intomainfrom
dependabot/go_modules/golang.org/x/sys-0.42.0

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 9, 2026

Bumps golang.org/x/sys from 0.41.0 to 0.42.0.

Commits
  • eaaaaee windows/registry: correct KeyInfo.ModTime calculation
  • 942780b cpu: darwin/arm64 feature detection
  • acef388 unix/linux: Prefixmsg and PrefixCacheinfo structs
  • 3687fbd cpu: better defaults on darwin ARM64
  • 48062e9 plan9: change Note to alias syscall.Note
  • 4f23f80 windows: change Signal to alias syscall.Signal
  • 7548802 all: upgrade go directive to at least 1.25.0 [generated]
  • See full diff in compare view

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)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Mar 9, 2026
@dlevy-msft-sql
Copy link
Contributor

@dependabot recreate

@dependabot dependabot bot force-pushed the dependabot/go_modules/golang.org/x/sys-0.42.0 branch from a1facf8 to fb520db Compare March 16, 2026 16:19
@dlevy-msft-sql
Copy link
Contributor

@copilot Fix the failing GitHub Actions job 67263409668 in run 23153971419 (PR #716) in microsoft/go-sqlcmd.

What’s failing

The Security Scanning workflow (.github/workflows/security.yml) runs govulncheck ./... using Go 1.25.7 and fails with exit code 3 due to standard library vulnerabilities:

  • GO-2026-4899 (stdlib os) — found in os@go1.25.7, fixed in os@go1.25.8
    • Example trace: pkg/sqlcmd/sqlcmd.go:331:25 sqlcmd.Sqlcmd.ConnectDbuser.Currentos.ReadDir
  • GO-2026-4601 (stdlib net/url) — found in net/url@go1.25.7, fixed in net/url@go1.25.8
    • Example traces:
      • pkg/sqlcmd/azure_auth.go:30:33 sqlcmd.GetTokenBasedConnectionurl.Parse
      • pkg/sqlcmd/sqlcmd.go:316:23 sqlcmd.Sqlcmd.ConnectDbsql.OpenDBurl.ParseRequestURI
      • internal/http/http.go:10:24 http.UrlExistshttp.Headurl.URL.Parse

These are not application-code bugs; they come from the Go standard library. The fix is to upgrade the Go toolchain used by CI (and the module’s go version) to Go 1.25.8 or newer.

Required changes

  1. In .github/workflows/security.yml, update the actions/setup-go@v6 step from:
go-version: '1.25.7'

to:

go-version: '1.25.8'
  1. In go.mod, update:
go 1.25.7

to:

go 1.25.8
  1. Run go mod tidy (with Go 1.25.8+) and commit any resulting go.mod / go.sum changes.

Acceptance criteria

Copy link
Contributor

Copilot AI commented Mar 16, 2026

@dlevy-msft-sql I've opened a new pull request, #717, to work on those changes. Once the pull request is ready, I'll request review from you.

@dlevy-msft-sql
Copy link
Contributor

@dependabot recreate

@dependabot dependabot bot force-pushed the dependabot/go_modules/golang.org/x/sys-0.42.0 branch from 88a126d to 65beb2d Compare March 16, 2026 18:07
@dlevy-msft-sql
Copy link
Contributor

@dependabot rebase

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Mar 16, 2026

Looks like this PR is already up-to-date with main! If you'd still like to recreate it from scratch, overwriting any edits, you can request @dependabot recreate.

@dlevy-msft-sql
Copy link
Contributor

@copilot Use this prompt (paste it into Copilot Chat / an agent) to update the workflow:

In the microsoft/go-sqlcmd repo, update the GitHub Actions workflow .github/workflows/security.yml so that it uses the Go version from go.mod (source of truth) instead of a hard-coded patch version.

Specifically, in the govulncheck job, replace the actions/setup-go@v6 step that currently sets go-version: '1.25.7' with go-version-file: go.mod. Keep the rest of the workflow unchanged.

Then ensure the workflow still runs on push/pull_request to main, on the weekly cron, and via workflow_dispatch.

Copy link
Contributor

Copilot AI commented Mar 16, 2026

@dlevy-msft-sql I've opened a new pull request, #721, to work on those changes. Once the pull request is ready, I'll request review from you.

@dlevy-msft-sql
Copy link
Contributor

@dependabot rebase

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Mar 16, 2026

Looks like this PR has been edited by someone other than Dependabot. That means Dependabot can't rebase it - sorry!

If you're happy for Dependabot to recreate it from scratch, overwriting any edits, you can request @dependabot recreate.

@dlevy-msft-sql
Copy link
Contributor

@dependabot recreate

Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.41.0 to 0.42.0.
- [Commits](golang/sys@v0.41.0...v0.42.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-version: 0.42.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/go_modules/golang.org/x/sys-0.42.0 branch from baa2829 to a2b8010 Compare March 16, 2026 20:40
@dlevy-msft-sql dlevy-msft-sql merged commit 949a8eb into main Mar 16, 2026
8 checks passed
@dlevy-msft-sql dlevy-msft-sql deleted the dependabot/go_modules/golang.org/x/sys-0.42.0 branch March 16, 2026 22:03
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 go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants