Skip to content

fix(security): bump gh and ignore CVE-2026-97054 in unfixed tools - #6370

Merged
dan-petty merged 6 commits into
mainfrom
fix/6352-bump-go-tools-cve-2026-97054
Nov 19, 2026
Merged

dan-petty merged 6 commits into
mainfrom
fix/6352-bump-go-tools-cve-2026-97054

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The Trivy scan of the three image jobs failed on CVE-2026-97054 in the Go stdlib (fixed in Go 1.26.11 and 1.27.4). The Dockerfile now pins gh v2.105.0, built with Go 1.27.4 and x/net 0.62.0. No release of promtool, OpenTofu, Trivy, actionlint or kubectl holds the fixed Go yet, so .trivyignore-tofu (runner tools) and .trivyignore-mcp-server (kubectl) get an entry that expires on 2026-11-22, as SECURITY.md 'A Finding with No Fix' says. Tracking: #6365, #5866, #6366, #6367, #6084. The CVE-2026-78661 entry moves from .trivyignore to .trivyignore-tofu: gh now holds x/net 0.62.0, but promtool and OpenTofu do not. The runner spec now allows the dated entries of SECURITY.md. Refs #3920.

Closes #6352

Change: openspec/changes/archive/2026-11-19-6352-bump-go-tools-cve-2026-97054/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/security Security linters (trivy, bandit, gitleaks, kubeconform) and Vault labels Nov 19, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test record

Head: 9db5ab92c, rebased on origin/main (29e3a0370).

Check Result
uv run devops ci --check --only lint,format,docs,constructs,openspec,test-settings,test-tree,startup-imports,swallowed-failures all 9 rows pass
uv run devops ci test on tests/roadmap/test_roadmap_runner_tools.py, tests/invariants/test_runner_hooks.py, tests/invariants/test_runner_image.py, tests/invariants/test_service_image.py, tests/invariants/test_mcp_server_image.py and the 4 stage tests that import runner_tools 113 passed
uv run mypy src/devops_cli/roadmap/runner_tools.py no issues
uv run devops ci --check --only lint,format (pre-push) pass

Fail-to-pass: uv run devops ci fail-to-pass --base origin/main exits 1:

0 failed on base (0 failed and 0 passed in no changed test files; 0 errored).
The fix changes no tests/**/test_*.py file and no module of tests/gate/*_checks/. A fix adds or changes a test or a gate check that fails on its base.

The only change under src/ is the pin GH_VERSION of src/devops_cli/roadmap/runner_tools.py. The docstring of is_source_code says that a tool pin is no code and that no test reads its value, but the rule reads the file type only. So the Fail-to-Pass Check (not a required check) fails on this pull request. The existing test test_roadmap_runner_tools.py compares GH_VERSION with the Dockerfile, and the image build runs the same check.

Local scan proof

Trivy v0.76.2 (vulnerability database of 2026-11-19), --scanners vuln --severity HIGH,CRITICAL --ignore-unfixed --exit-code 1, on the linux-amd64 release binaries of each image (each SHA-256 agrees with tools.lock or with the release digest). The ignore files are joined in the order of the trivyignores input of each job, as trivy-action does.

Image Binaries Ignore files Exit
Service gh v2.105.0 .trivyignore 0
Runner gh, promtool, tofu, trivy; actionlint image digest .trivyignore, .trivyignore-tofu 0
MCP Server the runner binaries, kubectl, helm; actionlint image digest .trivyignore, .trivyignore-mcp-server, .trivyignore-tofu 0
Runner, control the same binaries the files of origin/main 1: CVE-2026-97054 in promtool, tofu and trivy

The three image jobs of this pull request are the proof in CI.

Ignores added (SECURITY.md, A Finding with No Fix)

All are HIGH; none is CRITICAL. Read on 2026-11-19. The scanner names the fixed versions Go 1.26.11 and 1.27.4. The tags go1.27.4 and go1.26.11 are from 2026-11-10.

Binary Newest release (published) Go of that release Entry Expiry Tracking
promtool Prometheus v3.16.0 (2026-11-05) 1.27.3, x/net 0.61.0 CVE-2026-97054 and CVE-2026-78661 in .trivyignore-tofu 2026-11-22 and 2026-11-21 #6365
tofu OpenTofu v1.13.9 (2026-11-05) 1.27.3, x/net 0.57.0 CVE-2026-97054 and CVE-2026-78661 in .trivyignore-tofu 2026-11-22 and 2026-11-21 #5866
trivy Trivy v0.76.2 (2026-11-05) 1.27.3 CVE-2026-97054 in .trivyignore-tofu 2026-11-22 #6366
actionlint kjanat/actionlint v1.17.1 (2026-11-09); Docker Hub 1.17.1, 1.17 and latest hold the pinned digest, only nightly is newer 1.27.3 CVE-2026-97054 in .trivyignore-tofu 2026-11-22 #6367
kubectl v1.37.2 (2026-10-28); v1.38.0-beta.0 is a pre-release 1.26.10 CVE-2026-97054 in .trivyignore-mcp-server 2026-11-22 #6084

The Go version of each binary comes from trivy rootfs (or trivy image for actionlint) on the release build. No newer tag than the release above exists for any of the five.

  • The plain ignore format has no path field, and trivy-action v0.36.0 takes several plain files or one .trivyignore.yaml file only. So each entry matches its ID in every binary of the images that read the file. The narrowest scope is the file: only the runner and MCP server scans read .trivyignore-tofu, so the Service image, whose gh holds the fix, ignores nothing.
  • CVE-2026-78661 moved from .trivyignore to .trivyignore-tofu. It keeps the date that the owner allowed on 2026-11-07 (14 days, to 2026-11-21). If promtool and OpenTofu have no fixed release on 2026-11-21, the owner decides.

Fixed pin

gh v2.105.0 (published 2026-11-18): Go 1.27.4, golang.org/x/net 0.62.0, no HIGH or CRITICAL finding. Each SHA-256 in the Dockerfile is the asset digest of the release, and it agrees with gh_2.105.0_checksums.txt. The release notes of v2.104.0 and v2.105.0 name no breaking change.

Overlaps

No live step is necessary.

@dan-petty dan-petty changed the title fix(security): bump gh and ignore CVE-2026-97054 in unfixed tools build(deps): bump gh and ignore CVE-2026-97054 in unfixed tools Nov 19, 2026
The change filter (IMAGE_CONTENT_PATHS) of the Service, Runner and MCP
Server image jobs did not watch .trivyignore-tofu. A pull request that
renewed only an entry of that file skipped the build and the Trivy scan,
and its image checks passed with no scan.

docs/CLUSTER.md, docs/ROADMAP_WORKFLOW.md and the docstring of the
scanned tools test said that the releases of actionlint and Trivy pass
the image scan. They hold Go 1.27.3, so the scan accepts them only with
the dated CVE-2026-97054 entry of .trivyignore-tofu (#6366, #6367).
@dan-petty
dan-petty force-pushed the fix/6352-bump-go-tools-cve-2026-97054 branch from 9db5ab9 to 606c8c6 Compare November 19, 2026 03:44
@dan-petty dan-petty changed the title build(deps): bump gh and ignore CVE-2026-97054 in unfixed tools fix(security): bump gh and ignore CVE-2026-97054 in unfixed tools Nov 19, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Review findings of head 9db5ab9: how this push handles them

New head: 606c8c6. The archive of the OpenSpec change stays the last commit.

  1. Fail-to-Pass Check fails on a pin-only change (minor). Left; the cause is on fix(roadmap): keep no tool versions in runner_tools.py #5585. The coordinator asked for a build(deps) title, because the job of .github/workflows/fail-to-pass.yml runs only for a fix title. With that title the Fail-to-Pass job was skipped on 606c8c6, but the required check Semantic PR title failed: "The title type build is hidden in release-please-config.json, so it ships no release, but this pull request changes runtime code: src/devops_cli/roadmap/runner_tools.py. Use one of feat, fix, perf, refactor, revert." The pull request ships gh v2.105.0 in the images, so it must make a release, and fix is the correct type. So the title is fix(security): bump gh and ignore CVE-2026-97054 in unfixed tools again. No test of the pin is added (owner rule: no test of a pin value). The Fail-to-Pass Check is not a required check and fails as before; devops pr ready refuses it without --force, so a person decides. The new evidence is on fix(roadmap): keep no tool versions in runner_tools.py #5585: release_title counts the pin as runtime code, and the header of fail-to-pass.yml says that a pin under src/ is no code.
  2. The CVE-2026-97054 entry is scoped to a file, not to a path (minor). No change. trivy-action v0.36.0 takes several plain ignore files or one .trivyignore.yaml file, and the image jobs give two or three plain files. The plain format has no path field, and SECURITY.md asks for a path only "when the file format holds them". The entries of fix(security): bump opentofu and drop the ignore #5866 and fix(security): bump kubectl and drop the MCP server Trivy ignores #6084 use the same form. The design.md of the change records the rejected YAML alternative and its reason. The entry expires on 2026-11-22.
  3. Rule 8: two documents said that actionlint and Trivy pass the scan by their releases (minor). Fixed. docs/CLUSTER.md (Image) and docs/ROADMAP_WORKFLOW.md (runner image) now say that both releases hold Go 1.27.3 and that the image scan accepts them with the dated CVE-2026-97054 entry of .trivyignore-tofu (fix(security): bump trivy and drop the ignore #6366, fix(security): bump actionlint and drop the ignore #6367) until a release holds the fix. The docstring of test_the_scanned_tools_are_in_the_runner_with_the_pins_of_their_images had the same claim and now says the same. A git grep for the same claim about promtool, OpenTofu, kubectl and gh found no other document.
  4. The image change filter did not watch .trivyignore-tofu (minor, older than this pull request). Fixed. IMAGE_CONTENT_PATHS of the jobs service-image, runner-image and mcp-server-image in ci.yml now holds .trivyignore-tofu. The lists already held .trivyignore and .trivyignore-mcp-server, so each ignore file that an image job reads is now in its list. A renewal pull request that changes only .trivyignore-tofu now builds and scans the images. The Service scan reads only .trivyignore; the three lists stay the same, as feat(k8s): deploy the MCP server for the roadmap jobs #4182 made them. No test of a workflow value is added. The proposal and the tasks of the archived change name the two fixes.

Test record

  • uv run devops ci --check --only actionlint,zizmor: pass.
  • uv run devops ci --check --only lint,format,docs,constructs,openspec,test-settings,test-tree,startup-imports,swallowed-failures: pass.
  • uv run devops ci test tests/roadmap/test_roadmap_runner_tools.py tests/invariants/test_architectural_invariants.py tests/invariants/test_mcp_server_image.py: 108 passed.
  • devops ci fail-to-pass: not run. The push changes no behavior of the code under src/: it changes a workflow list, two documents, a docstring and the change folder.

Checks of 606c8c6

With the build(deps) title: Static Analysis, Tests & Coverage (5 shards), Changed-Test Independence, CodeQL, Design Tokens, Service Image, Runner Image and MCP Server Image passed; Fail-to-Pass Check was skipped; Semantic PR title failed (see item 1). After the title went back to fix(security): the required checks Static Analysis, Tests & Coverage and Semantic PR title passed. Service Image, Runner Image, MCP Server Image, the Service Image Tests and CodeQL passed. Fail-to-Pass Check failed, as on 9db5ab9 (item 1). The pull request stays a draft.

@dan-petty
dan-petty marked this pull request as ready for review November 19, 2026 04:22
@dan-petty
dan-petty merged commit 8030bed into main Nov 19, 2026
33 of 35 checks passed
@dan-petty
dan-petty deleted the fix/6352-bump-go-tools-cve-2026-97054 branch November 19, 2026 04:22
dan-petty-release Bot added a commit that referenced this pull request Nov 19, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.179.3](v0.179.2...v0.179.3)
(2026-11-19)


### Bug Fixes

* **security:** bump gh and ignore CVE-2026-97054 in unfixed tools
([#6370](#6370))
([8030bed](8030bed))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
dan-petty added a commit that referenced this pull request Nov 19, 2026
runner_tools.py held copies of the uv, gh, Node, actionlint and Python
pins of the Dockerfile. Tests compared them with the Dockerfile, and two
Renovate custom managers wrote the uv and Node copies. So each tool bump
changed a .py file under src/, needed a fix title, and failed the
Fail-to-Pass Check (#6370). The owner rule of 2026-11-19 forbids such
copies.

Now the module holds no tool version. The image check is a presence
check: each tool is on PATH and its version command exits 0, and the
readiness text says so. A dev dependency and the project still print
their installed version. The pin tests and the two custom managers go.
The gh group rule goes too: no manager reads gh, so a person bumps it
until #4361. The documents and specs follow. is_source_code gets no
guard for a pin-only module: after this change no module under src/
holds only a tool version.

Closes #5585

Change:
`openspec/changes/archive/2026-11-19-5585-no-tool-versions-in-runner-tools/`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/security Security linters (trivy, bandit, gitleaks, kubeconform) and Vault type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(security): bump the pinned gh for CVE-2026-97054

1 participant