Skip to content

chore(deps): update jdx/packslip to v1.11.2 - #96

Closed
sweepies-ops[bot] wants to merge 1 commit into
mainfrom
patchula/jdx-packslip-1.x
Closed

sweepies-ops[bot] wants to merge 1 commit into
mainfrom
patchula/jdx-packslip-1.x

Conversation

@sweepies-ops

@sweepies-ops sweepies-ops Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor
Package Change Type File
jdx/packslip v1.10.1@7d397618045bd98b76cd5cb8177767b2f52789b8 → v1.11.2@b934a22ba187f1d3928441170b9413c5119360bf minor .github/workflows/release.yml

jdx/packslip

Source · Compare changes

Release notes: v1.10.1 → v1.11.2 (3 releases)

1.11.2

packslip install now asks for approval when a key-signed project switches to a different public key that keeps the old key ID. This release also puts limits on how much work a hostile bundle can force the verifiers to do, and fixes two argument-handling gaps in the GitHub Actions. The format and specification are unchanged.

Fixed
  • packslip install treats a replacement public key with the same key ID as a trust change. A minisign key ID is eight bytes of text in the public key file. It is not derived from the key itself. Before this release, the continuity check compared only that ID, so a different key with the old ID was accepted through --pubkey or pins.d without approval, and install then remembered the new key. Each key-signed record now also stores a fingerprint of the whole public key. A changed key is reported as public key changed from <old> to <new> and needs --accept-trust-change=<id> like any other trust change. That means one approval for the release list and one for the release, as the trust guide already described. Records for keyless projects are unchanged. (jdx/packslip#305, @‍jdx)
    • Existing histories: On the first install after you upgrade, records without a fingerprint are filled in from the public key the history already remembers, so that install catches a same-ID replacement. If a history has a key-signed record but no remembered key, it adopts the first key it sees, as before. If an earlier version already accepted a same-ID replacement for the release list, the old key is lost and cannot be recovered. In that case the release check uses the replacement key as its baseline and does not catch the swap. Older packslip versions ignore the new field.
    • Pending approvals: If a key change was waiting for approval when you upgraded, its approval ID changes. Approve it again with the new ID.
  • Verifiers reject oversized or malformed bundle data before doing expensive work. (jdx/packslip#304, @‍jdx)
    • The standalone verifier (verifier/packslip-verify.mjs) rejects inclusion proofs whose logIndex or treeSize is not a non-negative int64. Before, a very long digit string took time that grew quadratically with its length. It also rejects checkpoints with more than 16 signatures.
    • The JavaScript package rejects bundles with more than 8 transparency-log entries or RFC 3161 timestamps before passing them to sigstore, which compares them pairwise before authenticating any. A normal release bundle has one entry.
    • In the Go library, Statement.Validate now finds artifacts with the same selectors in linear time. Before, the check was quadratic in the number of artifacts.
  • GitHub Actions handle unusual artifact names and tags safely. (jdx/packslip#304, @‍jdx)
    • The jdx/packslip action now passes -- before the artifact list. An artifact whose file name is exactly a packslip option, such as --no-pin-workflow, was previously read as that option. It is now treated as an artifact, and packslip create refuses it because it has no format.
    • The releases action now fails on a tag directory containing =. --release URL=PATH splits at the first =, so a tag like that moved part of the URL into the path.

Full Changelog: jdx/packslip@v1.11.1...v1.11.2

1.11.1

The Go module (github.com/jdx/packslip/go) gets three helpers for Go release tools that publish packslips. Until now those tools had to reimplement packslip rules in their own code. The statement format stays release/v1, and nothing changes for existing callers.

Added
  • GoTarget holds one build's Go settings: GOARCH, GOARM, GOAMD64, GO386, GOARM64, GOMIPS, GOPPC64, GORISCV64, and FloatABI. Arch() returns the packslip architecture and Variant() returns the variant, using whichever setting applies to GOARCH. For arm, FloatABI takes Go's softfloat or hardfloat, or a Rust or Zig target ABI such as gnueabi or gnueabihf, and overrides any float option in GOARM. (jdx/packslip#297, @‍jdx)

    target := packslip.GoTarget{GOARCH: "amd64", GOAMD64: "v3"}
    artifact.Arch = target.Arch()       // "x86_64"
    artifact.Variant = target.Variant() // "v3"
  • BundleName(project, repo) returns the bundle asset name the spec assigns when several tools share one repository's release. For example, github.com/owner/repo/mytool becomes packslip.mytool.sigstore.json, and any / in a deeper subpath becomes -. The repository itself, or a project outside it, gets packslip.sigstore.json. The repository is matched without regard to case. (jdx/packslip#297, @‍jdx)

  • CheckProjectSigner(project, token) checks, before anything is signed or written to the transparency log, that an OIDC token can sign for the project. Call it after AmbientIDToken. A github.com project must belong to the token's repository claim, and a gitlab.com project must equal its project_path claim. A reusable workflow from another repository passes. A domain project always passes, because its vendor pins the signer. (jdx/packslip#297, @‍jdx)

    Limitations:

    • The check only reads the token. It does not verify it.
    • A github.com or gitlab.com project fails if the token comes from a different issuer.
    • A project that still uses a repository's old name after a rename fails this check, even though verification would accept it.
    • SignKeyless does not call CheckProjectSigner, so existing signing code behaves as before.

The Publish from Go guide and the module README now cover all three helpers.

Full Changelog: jdx/packslip@v1.11.0...v1.11.1

1.11.0

packslip 1.11.0 makes every verifier in the repository (the CLI, the npm package, and the committable verifier) require a github.com or gitlab.com project to be signed from its own repository. It also makes packslip install fall back to older releases, warn about withdrawn installs, and stop raising some unnecessary trust-change prompts. The format stays at release/v1: the specification changes clarify existing rules, write down how the reference implementations already behave, and settle one conflict between icon rules. No change requires a new format version.

Security
  • Identity flags now narrow a forge project's signer policy instead of replacing it (jdx/packslip#256, @‍jdx). packslip verify derives a signer policy from a GitHub or GitLab project's name. Before this release, --issuer, --identity, or --identity-prefix replaced that policy. As a result, passing only GitHub Actions' OIDC issuer to --issuer accepted a bundle claiming github.com/owner/tool that any GitHub repository had signed. Now the certificate must also tie the signer to the project's repository. A reusable workflow from another repository still passes when the project's own run called it. Projects on other hosts are unaffected: for them, the flags are still the whole policy.
  • New verify --allow-other-repository accepts a document signed outside the project's repository on purpose, such as a repackager's. You must also pass --issuer and name the signer with --identity, --identity-prefix, or --source-repository. The option is refused with --pubkey.
    packslip verify packslip.sigstore.json \
      --issuer "$GITHUB_OIDC_ISSUER" \
      --identity-prefix "$REPACKAGER_WORKFLOW_PREFIX" \
      --allow-other-repository
    The jdx/packslip/releases action gains an allow-other-repository input (default false). It passes the flag automatically when project names a repository other than the one running the action, as with a registry's list.
  • The committable verifier (verifier/packslip-verify.mjs) applies the same repository rule to a github.com or gitlab.com --project (jdx/packslip#258, @‍jdx). It also checks the statement's own identity block against the certificate. New failure codes are project-signer and declared-identity, and it has the same --allow-other-repository opt-out (allowOtherRepository in the module). Projects that copied the file must copy the new version to get these checks.
  • The packslip npm package now validates statements and declared signers (jdx/packslip#259, @‍jdx). verifyRelease validates the statement against the release/v1 rules, which previously let through 14 of 15 conformance reject cases. It checks that predicate.identity names the actual signer and binds a github.com or gitlab.com project to its repository. It throws the new StatementError, DeclaredIdentityError, and ProjectSignerError, and adds the optional allowOtherRepository.
  • packslip install now holds a keyless domain project to the repository that first signed it (jdx/packslip#278, @‍jdx). Previously, a project named after its host, such as packslip.dev, was matched only by the signer's workflow URL. That let a repository recreated under the old name, or another repository calling the workflow as a reusable workflow, continue as the signer without a prompt. Install now remembers the certificate's repository ID and treats a different or missing ID as a changed signer that needs --accept-trust-change.
Added
  • packslip install falls back to older releases when the latest release has no packslip for this tool or no artifact for this host or --variant (jdx/packslip#263, @‍jdx). This covers cases such as a monorepo sibling's release whose tag also names this tool's version. Each skipped release produces a warning, for example warning: skipped 3.0.0, GitHub's latest release: its release carries no packslip for github.com/owner/tool. Requests for a version, prefix, or range skip only releases without the tool's packslip. An exact tag tries only that release. Install never falls back after a verification or trust failure, and it stops after 32 fetched bundles and asks for --version. Library users get new discovery APIs: Github::candidates, candidates_with_latest, Candidates, Skipped, and no_packslip.

The Count left some release notes out to keep this description short; read them all.

  • Tick this and the Count will look at it again on the next run.
  • Add to the Count's batch PR. This one closes and the update moves there.

View guided diff Turn on auto-fix

Patchula: v1
Patchula-Branch: 0aa5404185b662c8f07377fad0d867be32444b1390ad5313de7bbb9ee36c3723
Patchula-Base: 13b4164
Patchula-Plan: d18ee76bf39b964c38e2379988b822e2f5644b1d727d35c4d76ed64cbd7168cf
@deepsource-io

deepsource-io Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

DeepSource Code Review

We reviewed changes in 13b4164...c502dbb on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.

See full review on DeepSource ↗

PR Report Card

Overall Grade   Security  

Reliability  

Complexity  

Hygiene  

Code Review Summary

Analyzer Status Updated (UTC) Details
Rust Oct 30, 2026 10:53p.m. Review ↗
JavaScript Oct 30, 2026 10:53p.m. Review ↗
Shell Oct 30, 2026 10:53p.m. Review ↗

Important

AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.

@sweepies-ops

sweepies-ops Bot commented Oct 31, 2026

Copy link
Copy Markdown
Contributor Author

Batched by the Count into #115. Tick this update's box there to bring it back.

@sweepies-ops sweepies-ops Bot closed this Oct 31, 2026
@sweepies-ops
sweepies-ops Bot deleted the patchula/jdx-packslip-1.x branch October 31, 2026 04:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants