← Back to Pull requests

fix(setup-gitsign): bump gitsign to 0.17.1 so signed tags verify #1074

Closed
unknown closed this pull request without merging on Oct 06, 2026 09:56 UTC
View on GitHub
unknown unknown commented on Oct 06, 2026 03:08 UTC
Author

Problem

Tags signed through setup-gitsign, which uses gitsign 0.16.1, can't be verified:

$ git verify-tag v1.6.39
Error: failed to validate rekor entry: could not find matching tlog entry

That covers every release tag git-tag creates, here and in callers such as chainguard-dev/yam. Commits signed with 0.16.1 verify fine.

Cause

gitsign records each signature in Rekor as a hashedrekord entry keyed by sha256(<git object ID as a hex string>), and verify looks the entry up by the same key. For tags, 0.16.1 computes that ID wrongly. It rebuilds the object as if it were a commit, with the signature inserted as a gpgsig header instead of appended to the tag message the way git stores it. The entry ends up keyed to an object that never exists.

Evidence, from searching Rekor by each tag's signing certificate:

| Tag | Rekor entry | Recorded hash matches sha256(real tag ID)? | Matches sha256(gpgsig-rebuilt ID)? |
|---|---|---|---|
| chainguard-dev/yam v0.2.68 | logIndex 3048337659 | no | yes (e4eba888…) |
| chainguard-dev/actions v1.6.39 | logIndex 3037697404 | no | yes (67f669eb…) |
| probe tag signed with gitsign 0.17.1 | logIndex 3097106393 | yes | no |

The 0.17.1 probe tag also passes git verify-tag.

Change

Bump gitsign_version to 0.17.1 and replace the six platform checksums. All six binaries were verified with cosign verify-blob against their release bundles, requiring the identity https://github.com/sigstore/gitsign/.github/workflows/release.yml@refs/tags/v0.17.1 and issuer https://token.actions.githubusercontent.com. Each one's SHA-256 also matches the release's checksums.txt.

Things for reviewers

  • 0.17.x turns on the experimental sigstore-go signing client by default (EnableSigstoreGo: true, from sigstore/gitsign#819). The Rekor mode and servers are unchanged (online, Rekor v1, public Fulcio and Rekor). The 0.17.1 probe above signed on that default path. I haven't tested 0.17.1 with sigstore-go turned off, so I can't say whether the older signing code in 0.17.1 also has the fix.

  • This doesn't change git-tag or release-notes yet. Both pin setup-gitsign by SHA (805da2e, v1.6.37). Their pins need bumping after this is released before release tags pick up 0.17.1.

  • Tags already signed with 0.16.1 stay unverifiable online. Their Rekor entries are permanent, under the wrong ID.

  • test-gitsign installs 0.17.1 on each OS in its matrix and runs gitsign --version. It doesn't sign or verify, so the evidence for the fix is the Rekor analysis above, not CI.
  • zizmor (pedantic) is clean.

    Refs: PSEC-3083

    🤖 Generated with Claude Code

    Diff: 339 lines (+254 / -85) across 4 files Reviewer: cpanato Review duration: 407m
    All Vouch review confidence checks passed
    Residual risk 0.18 = Change Risk (0.42) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.42 · 339 lines diff across 4 files
    0.42
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    56%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.349
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #1074"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 42.3% (MEDIUM) · Higher = larger blast radius
    42.3%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 56.8% · Lower = rushed or shallow review
    56.8%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 18.3% · Safe to merge
    18.3%