You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
↑ aks-live-patching builds, tests pass, and govulncheck reports no reachable findings after the x/net bump. ↑ actionlint passes locally; zizmor passed on earlier revisions of this workflow. ↑ SARIF path rewrite checked on real output and on a synthetic ../ case. ↓ The scheduled SARIF upload runs only from the default branch, so it is untested until merge.
What this PR does / why we need it:
AgentBaker has no Go vulnerability scanner. A local govulncheck run found 4 reachable vulnerabilities in golang.org/x/net v0.58.0 in aks-live-patching (GO-2026-6617, GO-2026-6612, GO-2026-6611, GO-2026-6603).
Bump golang.org/x/net to v0.60.0 (with x/sys v0.48.0 and x/text v0.42.0) in aks-live-patching.
Add .github/workflows/govulncheck.yml: daily (and manual) scan of each Go module on the default branch; uploads SARIF to Security → Code scanning (one category for each module). Paths are rewritten to be repository-relative. Scanner errors fail the job.
No PR trigger, so no PR run holds a write-scoped token.
Why: Dependabot uses only the GitHub Advisory Database, which has no advisories for the 4 x/net CVEs above (published in the Go vulnerability database on 2026-10-08).
Notes:
Scheduled workflows run on the default branch (dev now, main later), so the scan follows the default branch without changes.
The module list is fixed. Add new Go modules to the matrix.
Testing:
go build ./... && go test ./... in aks-live-patching: passed.
govulncheck ./... for all modules (GOOS=linux): no reachable findings after the bump.
Bump golang.org/x/net to v0.60.0 in aks-live-patching to fix 4 reachable
vulnerabilities (GO-2026-6617, GO-2026-6612, GO-2026-6611, GO-2026-6603).
Add a daily govulncheck workflow that scans each Go module on main and
uploads SARIF results to code scanning.
AB#40920245
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Scanner failures are swallowed and reported as findings
.github/workflows/govulncheck.yml:59
🟡 Medium Risk — 🔧 Script Logic: Any go run failure sets found=true, including scanner-download and package-loading errors. The || echo also makes the failed scan succeed, so it posts a vulnerability comment even though no assessment completed. Install the pinned scanner separately, invoke it directly, and treat only its vulnerability exit code (3) as non-blocking; let other errors fail the step.
Drop PR comments: a pull_request run with write scopes can be abused by
a same-repo PR, and Dependabot PRs get a read-only token.
AB#40920245
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
The PR-controlled vulnerability workflow exposes write-scoped tokens to misuse, while Dependabot comment authorization failures cause the intended non-blocking scan to fail.
The PR scan runs read-only and uploads a report artifact. A trusted
workflow_run workflow (same pattern as go-test-publish.yml) posts a
sticky comment and deletes it when findings are fixed.
AB#40920245
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The vulnerability workflow can miss Go-source-only changes, publish incomplete results from failed or cancelled scans, and let superseded scans overwrite or delete newer reports.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
The publisher can overwrite or delete valid vulnerability warnings using incomplete results from failed or cancelled scans or stale results from older PR revisions because it lacks success and current-head checks.
Remove the separate PR scan and workflow_run publisher. The comment
step tolerates Dependabot's read-only token.
AB#40920245
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Run govulncheck only on schedule and manual dispatch, so no PR run
holds a write-scoped token.
AB#40920245
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The reason will be displayed to describe this comment to others. Learn more.
And will the go vunl check pick up vunerabilities in go vunl check when it's invoked in the pipeline in this way? We should make sure it scans itself :)
Drop the main pin; scheduled runs scan the default branch, which will
become main.
AB#40920245
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
f69b156099212b960b12c961d62b2e91576ee53c↑ actionlint passes locally; zizmor passed on earlier revisions of this workflow.
↑ SARIF path rewrite checked on real output and on a synthetic
../case.↓ The scheduled SARIF upload runs only from the default branch, so it is untested until merge.
What this PR does / why we need it:
AgentBaker has no Go vulnerability scanner. A local
govulncheckrun found 4 reachable vulnerabilities ingolang.org/x/netv0.58.0 inaks-live-patching(GO-2026-6617, GO-2026-6612, GO-2026-6611, GO-2026-6603).golang.org/x/netto v0.60.0 (withx/sysv0.48.0 andx/textv0.42.0) inaks-live-patching..github/workflows/govulncheck.yml: daily (and manual) scan of each Go module on the default branch; uploads SARIF to Security → Code scanning (one category for each module). Paths are rewritten to be repository-relative. Scanner errors fail the job.Notes:
devnow,mainlater), so the scan follows the default branch without changes.Testing:
go build ./... && go test ./...inaks-live-patching: passed.govulncheck ./...for all modules (GOOS=linux): no reachable findings after the bump.actionlint .github/workflows/govulncheck.yml: passed.Which issue(s) this PR fixes:
AB#40920245