Repository navigation
Description
Problem
The image scans Runner Image and Service Image find CVE-2026-78661 (HIGH) in golang.org/x/net v0.60.0, which the pinned GitHub CLI v2.102.1 vendors in usr/local/bin/gh. The fix is in golang.org/x/net 0.62.0. No cli/cli release has it: go.mod of v2.103.3 (newest release) has v0.60.0, and trunk has v0.61.0.
The pull request for #3881 adds a time-limited .trivyignore entry, CVE-2026-78661 exp:2026-11-21, so that other pull requests can merge. The entry ends by itself on 2026-11-21. From that day the image scans and an invariant test fail again. This issue holds the real fix.
Expected
The Dockerfile pins a GitHub CLI release that has golang.org/x/net 0.62.0 or newer. The .trivyignore entry for CVE-2026-78661 is gone, and both image scans pass without it.
Acceptance criteria
- The pinned release is the first cli/cli release whose
go.modhasgolang.org/x/net0.62.0 or newer (read withdevops gh api repos/cli/cli/contents/go.mod?ref=<tag>). - The
Dockerfilehas the new version, the SHA-256 checksum of both archives (amd64 and arm64) and the path in the install step.GH_VERSIONinsrc/devops_cli/roadmap/runner_tools.pyand the floor intests/invariants/test_service_image.pymatch the pin. - The entry
CVE-2026-78661and its reason are removed from.trivyignore. -
Runner ImageandService Imagepass on a pull request that changes no image. - This work is done before 2026-11-21, the day the ignore ends. If cli/cli has no release by then, a person decides whether to move the date.
Existing tool considered
Trivy finds the problem, and a new release of GitHub CLI fixes it. The change builds no tool. Renovate or the existing pin update path may cover the bump.
Related
Related #3881, which delivers the time-limited ignore. Related #1800, which bumped the pin for another CVE.
Alternatives check of 2026-11-09: partly.
Tool: renovatebot/renovate (https://github.com/renovatebot/renovate), AGPL-3.0, last activity 2026-11-08, maintained.
Proposed design
Problem statement
Do not remove the CVE-2026-78661 ignore from .trivyignore-tofu yet. The gh pin is already v2.105.0, and the remaining work is the service-image floor and the fixed-CVE set. The v2.105.0 release holds golang.org/x/net 0.62.0, which fixes the CVE for the Service image. The ignore stays because promtool v3.16.0 and OpenTofu v1.13.9 still vendor older x/net. This item updates the service-image invariant and defers the removal of that ignore until the promtool and OpenTofu bumps land.
Acceptance criteria
Requirement: Service-image floor names the safe gh release
GH_FIRST_SAFE_VERSION in tests/invariants/test_service_image.py SHALL be Version("2.105.0").
Scenario: The floor equals the safe pin
- WHEN
uv run pytest tests/invariants/test_service_image.py -qruns the service-image invariant. - THEN The test asserts that
GH_FIRST_SAFE_VERSIONequalsVersion("2.105.0").
Requirement: The fixed set names CVE-2026-78661
GH_GO_FINDINGS_FIXED_IN_THE_PIN in tests/invariants/test_service_image.py SHALL contain CVE-2026-78661.
Scenario: The fixed set holds the CVE
- WHEN
uv run pytest tests/invariants/test_service_image.py -qruns the service-image invariant. - THEN The test asserts that
CVE-2026-78661is inGH_GO_FINDINGS_FIXED_IN_THE_PIN.
Requirement: Service Image passes without the CVE ignore
The Service Image check SHALL pass on a pull request that changes no image, with the v2.105.0 pin and no CVE-2026-78661 entry in .trivyignore.
Scenario: The Service Image scan passes
- WHEN The
Service Imagecheck runs on a pull request that changes no image. - THEN The check completes with a passing status.
Existing Tool Considered
The alternatives check of 2026-11-09 in the issue body records verdict partly for renovatebot/renovate (https://github.com/renovatebot/renovate). The check lists what the tool covers and lacks. The proposal keeps the manual floor and fixed-set changes, which the check records as outside Renovate's cover. The change builds no tool.
Key questions
- Which cli/cli release does the repository pin?: The repository pins v2.105.0.
GH_VERSIONinsrc/devops_cli/roadmap/runner_tools.pyis2.105.0. The issue reply records that the release holds golang.org/x/net 0.62.0. [sources: src/devops_cli/roadmap/runner_tools.py:44] - Should
GH_FIRST_SAFE_VERSIONmove to 2.105.0?: Yes. The floor must name the pinned release that fixes CVE-2026-78661. Set it toVersion("2.105.0"). (best practice) [sources: src/devops_cli/roadmap/runner_tools.py:44, tests/invariants/test_service_image.py:27]- Chosen: Move to 2.105.0. The pinned release holds golang.org/x/net 0.62.0, so the lower-bound test rejects older pins.
- Rejected: Keep 2.102.1. A pin at 2.102.1 still vendors golang.org/x/net 0.60.0 and passes the test.
- Rejected: Remove the floor. It loses the guard for the Go findings that fix(security): the service image ships a gh built with go 1.27.2 or later, and the two go stdlib ignores are dropped #1492 fixed.
- Should
CVE-2026-78661joinGH_GO_FINDINGS_FIXED_IN_THE_PIN?: Yes. The set names the Go findings that the pinned gh build fixes. AddCVE-2026-78661to the set. (best practice) [sources: tests/invariants/test_service_image.py:31]- Chosen: Add the CVE. The service-image invariant then rejects an ignore for a finding that the pin fixes.
- Rejected: Leave the set unchanged. The test cannot catch a later ignore for this CVE in the Service image.
- Can this item remove the CVE-2026-78661 ignore from
.trivyignore-tofunow?: No. The issue reply records that Trivy still finds the same CVE in promtool v3.16.0 and OpenTofu v1.13.9, the newest releases. Defer that removal to a new issue that waits on fix(security): bump promtool and drop the ignore #6365 and fix(security): bump opentofu and drop the ignore #5866. (best practice) [sources: src/devops_cli/roadmap/runner_tools.py, tests/invariants/test_service_image.py]- Chosen: Defer the ignore removal. The newest promtool and OpenTofu releases still vendor older x/net, so the Runner Image scan still needs the ignore.
- Rejected: Remove the ignore now. The Runner Image scan would fail on the same CVE in promtool and OpenTofu.
- Does Renovate cover the whole change?: No. The alternatives check of 2026-11-09 records verdict
partlyfor renovatebot/renovate. The proposal keeps the manual floor and fixed-set changes, which the check records as outside Renovate's cover. (best practice) [sources: .github/renovate.json]- Chosen: Keep the manual pin and invariant update. Renovate covers only the Dockerfile version proposal. The floor, the fixed set and the scan check stay manual.
- Rejected: Add a Renovate rule for the gh URL. The rule cannot read the candidate release go.mod or move the Python constants and test floor.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Nov 7, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
fixprefix of the title gives the type.(ci)scope of the title gives the scope.A HIGH severity CVE with a hard expiry of 2026-11-21 after which CI fails.Removes a HIGH severity vulnerability from the shipped image.Bump a version, update two checksums, and remove one ignore line once the release exists.Both address CVE-2026-78661 in the pinned GitHub CLI; #3881 adds a time-limited ignore while the candidate bumps the pin and removes the ignore.dan-petty commentedon Nov 7, 2026
PR #3918 (fix(roadmap), no dependency or Dockerfile change) fails
Runner ImageandService Imagewith this scan on its head commit. It is the same cause as this issue and as #3881.ci(security): ignore CVE-2026-78661 until 2026-11-21 (#3926)
devops-cli-service commentedon Nov 7, 2026
Refine cannot set this item to Ready at 9ca54d1 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.
go.modrequiresgolang.org/x/net0.62.0 or newer. The newest release v2.103.3 has v0.60.0 andtrunkhas v0.61.0.devops-cli-service commentedon Nov 9, 2026
Alternatives check: partly
Reason: Searches found Renovate, which scans a repository and proposes dependency-update pull requests, so it can propose the newer gh release pin in the Dockerfile; the repository already carries a Renovate config (
.github/renovate.json). It covers only that part: it cannot pick the first cli/cli release whosego.modrequiresgolang.org/x/net0.62.0, updateGH_VERSION/GH_FIRST_SAFE_VERSION, or delete the.trivyignoreentry, so the rest stays manual.Tool: renovatebot/renovate (https://github.com/renovatebot/renovate)
Covers:
.github/renovate.jsonconfiguration and can read GitHub release tagsLacks:
Tools considered:
Searches run:
Sources:
Checked on 2026-11-09. A person decides what this means for the item. The check changes no label and closes no issue.
build(deps): update the image bases, downloads and devcontainer features
dan-petty commentedon Nov 14, 2026
Blocked on upstream: the newest cli/cli release is v2.104.0 (2026-11-14), and its go.mod still pins golang.org/x/net v0.61.0. The issue asks for v0.62.0 or newer. The first safe release does not exist, so no honest pin, checksum or floor update is possible. Checked with repos/cli/cli/releases and repos/cli/cli/contents/go.mod?ref=v2.104.0. Return when a release ships x/net 0.62.0+; the ignore ends 2026-11-21.
devops-cli-service commentedon Nov 14, 2026
Refine cannot set this item to Ready at 0410772 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.
go.modrequiresgolang.org/x/net0.62.0 or newer. v2.104.0 (2026-11-14) still pins v0.61.0. If none ships by 2026-11-21, a person decides whether to extend the.trivyignoredate.The next refine round also looks at the item again when a commit on the default branch changes one of these files:
src/devops_cli/roadmap/runner_tools.py,tests/invariants/test_service_image.py.7 remaining items
devops-cli-service commentedon Nov 19, 2026
Plan state: branch
fix/3920-bump-the-pinned-gh-and-drop, draft pull request #6393. The pull request plans the item and closes no issue. The stage job and the step fix-plan edit this comment, and a comment of each run tells what the run did.The task groups, with the tokens of the inputs of each step, for a budget of 64000 tokens:
devops-cli-service commentedon Nov 19, 2026
The stage job staged the plan of draft pull request #6393. The plan state comment of #6393 holds the branch, the task groups and the findings.
The runs of the planner and the review made 49 model request(s), and used 3046388 input tokens and 91475 output tokens. The tool calls, in order:
search_code({"text":"CVE-2026-78661"})search_code({"text":"cli/cli/releases/download"})list_files({"directory":""})read_file({"path":".trivyignore-tofu"})read_file({"path":".trivyignore"})search_code({"text":"trivyignore-tofu"})read_file({"path":"tests/invariants/test_service_image.py","start_line":14,"end_line":40})references({"name":"GH_FIRST_SAFE_VERSION"})references({"name":"GH_GO_FINDINGS_FIXED_IN_THE_PIN"})search_code({"text":"trivyignores: .trivyignore"})search_code({"text":"Service Image"})read_file({"path":".github/workflows/ci.yml","start_line":516,"end_line":540})read_file({"path":".github/workflows/ci.yml","start_line":636,"end_line":660})search_code({"text":"2.102.1"})read_issue({"number":6389})read_issue({"number":6390})read_file({"path":"Dockerfile","start_line":30,"end_line":60})read_file({"path":"src/devops_cli/roadmap/runner_tools.py","start_line":38,"end_line":50})read_spec({"capability":"roadmap-stage/tests-gate","requirement":"A test-only other group names its test function"})find_issues({"terms":"test_service_image GH_FIRST_SAFE_VERSION"})read_issue({"number":6365})read_issue({"number":5866})read_file({"path":"tests/invariants/test_service_image.py","start_line":112,"end_line":150})read_file({"path":"src/devops_cli/roadmap/runner_tools.py","start_line":40,"end_line":50})search_code({"text":"RUNNER_TOOLS: tuple"})read_file({"path":"Dockerfile","start_line":40,"end_line":58})read_file({"path":".trivyignore"})read_file({"path":".trivyignore-tofu","start_line":20,"end_line":30})read_file({"end_line":652,"path":".github/workflows/ci.yml","start_line":518})read_file({"path":"tests/invariants/test_service_image.py","start_line":100,"end_line":160})read_file({"path":"Dockerfile","start_line":40,"end_line":60})read_file({"path":".trivyignore"})read_file({"path":".trivyignore-tofu"})search_code({"text":"GH_FIRST_SAFE_VERSION"})search_code({"text":"GH_GO_FINDINGS_FIXED_IN_THE_PIN"})search_code({"text":"ci test"})search_code({"text":"GH_VERSION"})search_code({"text":"2.102.1"})search_code({"text":"2.105.0"})read_file({"path":".github/workflows/ci.yml","start_line":510,"end_line":530})read_file({"path":".github/workflows/ci.yml","start_line":635,"end_line":660})read_file({"end_line":512,"path":".github/workflows/ci.yml","start_line":460})read_file({"end_line":640,"path":".github/workflows/ci.yml","start_line":590})read_file({"end_line":462,"path":".github/workflows/ci.yml","start_line":400})read_file({"end_line":545,"path":".github/workflows/ci.yml","start_line":520})references({"name":"GH_FIRST_SAFE_VERSION"})references({"name":"GH_GO_FINDINGS_FIXED_IN_THE_PIN"})list_files({"directory":""})read_comment({"number":0})read_comment({"number":8})read_comment({"number":5})read_spec({})read_file({"end_line":100,"path":"src/devops_cli/roadmap/runner_tools.py","start_line":88})search_code({"text":"fail-to-pass"})read_spec({"capability":"ci-service-image-tests"})search_code({"text":"first safe release"})search_code({"text":"trivyignore"})references({"name":"CVE-2026-78661"})references({"name":"gh v2.102.1"})read_spec({"capability":"mcp-server-image"})read_spec({"capability":"mcp-server-image","requirement":"The MCP scan does not depend on the gh entry"})read_spec({"capability":"mcp-server-image","requirement":"Each MCP ignore entry stays valid"})search_code({"text":"x/net"})search_code({"text":"the pinned gh"})list_files({"directory":"openspec/specs"})list_files({"directory":"openspec/changes"})git_log({"path":"tests/invariants/test_service_image.py"})search_code({"text":"cli/cli"})read_file({"path":".github/renovate.json","start_line":300,"end_line":360})read_file({"end_line":300,"path":".github/renovate.json","start_line":240})list_files({"directory":"openspec/changes/archive/2026-11-19-6352-bump-go-tools-cve-2026-97054"})read_file({"path":"openspec/changes/archive/2026-11-19-6352-bump-go-tools-cve-2026-97054/tasks.md"})search_code({"text":"test_runner_image"})list_files({"directory":"tests/invariants"})search_code({"text":"trivyignore-tofu"})search_code({"text":".trivyignore"})search_code({"text":"openspec/specs/"})read_file({"path":".github/workflows/fail-to-pass.yml"})search_code({"text":"pending-person"})search_code({"text":"criteria"})search_code({"text":"trivyignore_problems"})read_file({"path":"tests/support/trivyignore.py"})read_file({"end_line":140,"path":"tests/invariants/test_runner_image.py","start_line":95})find_issues({"terms":"test_service_image"})find_issues({"terms":"GH_FIRST_SAFE_VERSION"})read_issue({"number":6390})read_issue({"number":6166})list_files({"directory":"openspec/changes/archive/2026-11-19-6381-delete-clock-trivyignore-tests"})list_files({"directory":"openspec/changes/archive/2026-11-07-3881-time-limited-gh-cve-ignore"})read_file({"path":"openspec/changes/archive/2026-11-07-3881-time-limited-gh-cve-ignore/specs/service-image/spec.md"})read_file({"path":"tests/invariants/test_service_image.py","start_line":180,"end_line":200})Tool calls: find_issues=3 (empty=2), git_log=1 (empty=0), list_files=8 (empty=0), read_comment=3 (empty=0), read_file=32 (empty=0), read_issue=6 (empty=0), read_spec=6 (empty=0), references=6 (empty=0), search_code=26 (empty=0)
The stage job read the open pull requests and their files in 1 GraphQL request(s).
The plan request held these comments of the item whole: #3920 (comment), #3920 (comment), #3920 (comment), #3920 (comment), #3920 (comment), #3920 (comment), #3920 (comment), #3920 (comment), #3920 (comment).
devops-cli-service commentedon Nov 19, 2026
The runner Job devops-cli-implement-devops-cli-3920-106b49 ended: succeeded.
Image digest: sha256:517b635e7dc7e5f1183d49563318be6f356ad1558e813e677999d9c62f6c720e
The last lines of its log:
Failure class:
ci_infra.Action taken: none.
Action left:
retry: run the item again.The Job left this item without a result. The item is Blocked. When a retry can fix the class of the stop, the Service starts a new Job in the next round. The limit is
roadmap.implement.continuations_per_item, and the comment of that round says so. If no continuation is left, fix the cause. Then commentimplement: retry. A new runner image also clears the stop. This holds only if a retry can fix the class of the stop. The limits ofroadmap.implement.digest_clears_per_classandroadmap.implement.digest_clears_per_itemmust also allow it.devops-cli-service commentedon Nov 19, 2026
Cleared the stop at job by the rule
continue: the runner Job devops-cli-implement-devops-cli-3920-106b49 ended without a result. The classci_infraof the stop is one that a new attempt can fix. This is continuation 1 of 4 for this item. The item is Ready again. The Service takes it in the next round. The new Job takes the branch fromorigin, so it keeps the work that the run pushed there.