Skip to content

fix(ci): bump the pinned gh and drop the CVE-2026-78661 ignore #3920

Closed

Description

@dan-petty

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.mod has golang.org/x/net 0.62.0 or newer (read with devops gh api repos/cli/cli/contents/go.mod?ref=<tag>).
  • The Dockerfile has the new version, the SHA-256 checksum of both archives (amd64 and arm64) and the path in the install step. GH_VERSION in src/devops_cli/roadmap/runner_tools.py and the floor in tests/invariants/test_service_image.py match the pin.
  • The entry CVE-2026-78661 and its reason are removed from .trivyignore.
  • Runner Image and Service Image pass 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 -q runs the service-image invariant.
  • THEN The test asserts that GH_FIRST_SAFE_VERSION equals Version("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 -q runs the service-image invariant.
  • THEN The test asserts that CVE-2026-78661 is in GH_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 Image check 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_VERSION in src/devops_cli/roadmap/runner_tools.py is 2.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_VERSION move to 2.105.0?: Yes. The floor must name the pinned release that fixes CVE-2026-78661. Set it to Version("2.105.0"). (best practice) [sources: src/devops_cli/roadmap/runner_tools.py:44, tests/invariants/test_service_image.py:27]
  • Should CVE-2026-78661 join GH_GO_FINDINGS_FIXED_IN_THE_PIN?: Yes. The set names the Go findings that the pinned gh build fixes. Add CVE-2026-78661 to 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-tofu now?: 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 partly for 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.

Moved to new items

#6389

Activity

  1. added
    source/agent
    type/bug
    scope/ci
    status/new
    value/high
    effort/low
    on Nov 7, 2026
  2. dan-petty commented on Nov 7, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/bug. The fix prefix of the title gives the type.
    • Scope: scope/ci. The (ci) scope of the title gives the scope.
    • Priority: P1-High. A HIGH severity CVE with a hard expiry of 2026-11-21 after which CI fails.
    • Value: High. Removes a HIGH severity vulnerability from the shipped image.
    • Effort: Low. Bump a version, update two checksums, and remove one ignore line once the release exists.
    • Related: fix(ci): bump the pinned GitHub CLI for CVE-2026-78661 #3881, which asks for a different change. 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.
  3. added
    priority/p1-high
    on Nov 7, 2026
  4. dan-petty commented on Nov 7, 2026

    @dan-petty
    OwnerAuthor

    PR #3918 (fix(roadmap), no dependency or Dockerfile change) fails Runner Image and Service Image with this scan on its head commit. It is the same cause as this issue and as #3881.

  5. added a commit that references this issue on Nov 7, 2026
  6. devops-cli-service commented on Nov 7, 2026

    @devops-cli-service
    Contributor

    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.

    • A cli/cli release whose go.mod requires golang.org/x/net 0.62.0 or newer. The newest release v2.103.3 has v0.60.0 and trunk has v0.61.0.
  7. devops-cli-service commented on Nov 9, 2026

    @devops-cli-service
    Contributor

    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 whose go.mod requires golang.org/x/net 0.62.0, update GH_VERSION/GH_FIRST_SAFE_VERSION, or delete the .trivyignore entry, so the rest stays manual.

    Tool: renovatebot/renovate (https://github.com/renovatebot/renovate)

    • License: AGPL-3.0
    • Last activity: 2026-11-08
    • Maintained: yes

    Covers:

    • Proposes dependency-update pull requests, including a newer release version pinned in the Dockerfile
    • Runs from the project's existing .github/renovate.json configuration and can read GitHub release tags

    Lacks:

    • Cannot choose the first cli/cli release whose go.mod requires golang.org/x/net 0.62.0 or newer
    • Cannot update GH_VERSION in src/devops_cli/roadmap/runner_tools.py or the GH_FIRST_SAFE_VERSION floor in tests/invariants/test_service_image.py
    • Cannot remove the CVE-2026-78661 entry and its reason from .trivyignore
    • Cannot verify that the Runner Image and Service Image scans pass without the ignore

    Tools considered:

    Searches run:

    • Renovate bot update pinned Dockerfile version custom manager release, results: 5
    • automatically update GitHub CLI version pin in Dockerfile with checksums, results: 5
    • renovatebot renovate documentation, results: 5
    • Trivy CVE ignore file exp date .trivyignore, results: 5
    • renovate docs datasource github-releases custom manager regex Dockerfile, results: 5

    Sources:

    Checked on 2026-11-09. A person decides what this means for the item. The check changes no label and closes no issue.

  8. dan-petty commented on Nov 14, 2026

    @dan-petty
    OwnerAuthor

    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.

  9. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    Contributor

    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.

    • A cli/cli release whose go.mod requires golang.org/x/net 0.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 .trivyignore date.

    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.

  10. 7 remaining items

  11. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service
    Contributor

    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:

    1. Raise the gh floor to the pinned v2.105.0: 12191 tokens
    2. Add CVE-2026-78661 to the findings that the pin fixes: 13073 tokens
  12. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service
    Contributor

    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:

    1. search_code({"text":"CVE-2026-78661"})
    2. search_code({"text":"cli/cli/releases/download"})
    3. list_files({"directory":""})
    4. read_file({"path":".trivyignore-tofu"})
    5. read_file({"path":".trivyignore"})
    6. search_code({"text":"trivyignore-tofu"})
    7. read_file({"path":"tests/invariants/test_service_image.py","start_line":14,"end_line":40})
    8. references({"name":"GH_FIRST_SAFE_VERSION"})
    9. references({"name":"GH_GO_FINDINGS_FIXED_IN_THE_PIN"})
    10. search_code({"text":"trivyignores: .trivyignore"})
    11. search_code({"text":"Service Image"})
    12. read_file({"path":".github/workflows/ci.yml","start_line":516,"end_line":540})
    13. read_file({"path":".github/workflows/ci.yml","start_line":636,"end_line":660})
    14. search_code({"text":"2.102.1"})
    15. read_issue({"number":6389})
    16. read_issue({"number":6390})
    17. read_file({"path":"Dockerfile","start_line":30,"end_line":60})
    18. read_file({"path":"src/devops_cli/roadmap/runner_tools.py","start_line":38,"end_line":50})
    19. read_spec({"capability":"roadmap-stage/tests-gate","requirement":"A test-only other group names its test function"})
    20. find_issues({"terms":"test_service_image GH_FIRST_SAFE_VERSION"})
    21. read_issue({"number":6365})
    22. read_issue({"number":5866})
    23. read_file({"path":"tests/invariants/test_service_image.py","start_line":112,"end_line":150})
    24. read_file({"path":"src/devops_cli/roadmap/runner_tools.py","start_line":40,"end_line":50})
    25. search_code({"text":"RUNNER_TOOLS: tuple"})
    26. read_file({"path":"Dockerfile","start_line":40,"end_line":58})
    27. read_file({"path":".trivyignore"})
    28. read_file({"path":".trivyignore-tofu","start_line":20,"end_line":30})
    29. read_file({"end_line":652,"path":".github/workflows/ci.yml","start_line":518})
    30. read_file({"path":"tests/invariants/test_service_image.py","start_line":100,"end_line":160})
    31. read_file({"path":"Dockerfile","start_line":40,"end_line":60})
    32. read_file({"path":".trivyignore"})
    33. read_file({"path":".trivyignore-tofu"})
    34. search_code({"text":"GH_FIRST_SAFE_VERSION"})
    35. search_code({"text":"GH_GO_FINDINGS_FIXED_IN_THE_PIN"})
    36. search_code({"text":"ci test"})
    37. search_code({"text":"GH_VERSION"})
    38. search_code({"text":"2.102.1"})
    39. search_code({"text":"2.105.0"})
    40. read_file({"path":".github/workflows/ci.yml","start_line":510,"end_line":530})
    41. read_file({"path":".github/workflows/ci.yml","start_line":635,"end_line":660})
    42. read_file({"end_line":512,"path":".github/workflows/ci.yml","start_line":460})
    43. read_file({"end_line":640,"path":".github/workflows/ci.yml","start_line":590})
    44. read_file({"end_line":462,"path":".github/workflows/ci.yml","start_line":400})
    45. read_file({"end_line":545,"path":".github/workflows/ci.yml","start_line":520})
    46. references({"name":"GH_FIRST_SAFE_VERSION"})
    47. references({"name":"GH_GO_FINDINGS_FIXED_IN_THE_PIN"})
    48. list_files({"directory":""})
    49. read_comment({"number":0})
    50. read_comment({"number":8})
    51. read_comment({"number":5})
    52. read_spec({})
    53. read_file({"end_line":100,"path":"src/devops_cli/roadmap/runner_tools.py","start_line":88})
    54. search_code({"text":"fail-to-pass"})
    55. read_spec({"capability":"ci-service-image-tests"})
    56. search_code({"text":"first safe release"})
    57. search_code({"text":"trivyignore"})
    58. references({"name":"CVE-2026-78661"})
    59. references({"name":"gh v2.102.1"})
    60. read_spec({"capability":"mcp-server-image"})
    61. read_spec({"capability":"mcp-server-image","requirement":"The MCP scan does not depend on the gh entry"})
    62. read_spec({"capability":"mcp-server-image","requirement":"Each MCP ignore entry stays valid"})
    63. search_code({"text":"x/net"})
    64. search_code({"text":"the pinned gh"})
    65. list_files({"directory":"openspec/specs"})
    66. list_files({"directory":"openspec/changes"})
    67. git_log({"path":"tests/invariants/test_service_image.py"})
    68. search_code({"text":"cli/cli"})
    69. read_file({"path":".github/renovate.json","start_line":300,"end_line":360})
    70. read_file({"end_line":300,"path":".github/renovate.json","start_line":240})
    71. list_files({"directory":"openspec/changes/archive/2026-11-19-6352-bump-go-tools-cve-2026-97054"})
    72. read_file({"path":"openspec/changes/archive/2026-11-19-6352-bump-go-tools-cve-2026-97054/tasks.md"})
    73. search_code({"text":"test_runner_image"})
    74. list_files({"directory":"tests/invariants"})
    75. search_code({"text":"trivyignore-tofu"})
    76. search_code({"text":".trivyignore"})
    77. search_code({"text":"openspec/specs/"})
    78. read_file({"path":".github/workflows/fail-to-pass.yml"})
    79. search_code({"text":"pending-person"})
    80. search_code({"text":"criteria"})
    81. search_code({"text":"trivyignore_problems"})
    82. read_file({"path":"tests/support/trivyignore.py"})
    83. read_file({"end_line":140,"path":"tests/invariants/test_runner_image.py","start_line":95})
    84. find_issues({"terms":"test_service_image"})
    85. find_issues({"terms":"GH_FIRST_SAFE_VERSION"})
    86. read_issue({"number":6390})
    87. read_issue({"number":6166})
    88. list_files({"directory":"openspec/changes/archive/2026-11-19-6381-delete-clock-trivyignore-tests"})
    89. list_files({"directory":"openspec/changes/archive/2026-11-07-3881-time-limited-gh-cve-ignore"})
    90. read_file({"path":"openspec/changes/archive/2026-11-07-3881-time-limited-gh-cve-ignore/specs/service-image/spec.md"})
    91. 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).

  13. added
    owner/service
    status/in-progress
    and removed
    owner/service
    status/ready
    on Nov 19, 2026
  14. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service
    Contributor

    The runner Job devops-cli-implement-devops-cli-3920-106b49 ended: succeeded.
    Image digest: sha256:517b635e7dc7e5f1183d49563318be6f356ad1558e813e677999d9c62f6c720e

    The last lines of its log:

    # Implement plan for dan-petty/devops-cli
    
    ## Left out
    - #3920 fix(ci): bump the pinned gh and drop the CVE-2026-78661 ignore: Its plan pull request #6393 is ready for review and awaiting merge.
    ✓ Took 0 item(s) to a ready pull request, stopped 0.
    

    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 comment implement: retry. A new runner image also clears the stop. This holds only if a retry can fix the class of the stop. The limits of roadmap.implement.digest_clears_per_class and roadmap.implement.digest_clears_per_item must also allow it.

  15. added
    status/blocked
    status/ready
    and removed
    owner/service
    status/in-progress
    status/blocked
    on Nov 19, 2026
  16. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service
    Contributor

    Cleared the stop at job by the rule continue: the runner Job devops-cli-implement-devops-cli-3920-106b49 ended without a result. The class ci_infra of 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 from origin, so it keeps the work that the run pushed there.

  17. removed
    status/ready
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p1-highscope/cisource/agenttype/bugvalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions