Install any skill in seconds. Free to start, no credit card required.
Get Started Free →This skill covers implementing code signing for build artifacts to ensure integrity and authenticity throughout the software supply chain. It addresses signing binaries, packages, and containers using GPG, Sigstore, and platform-specific signing tools, establishing trust chains, and verifying signatures in deployment pipelines.
.claude/skills/implementing-code-signing-for-artifacts/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-21 | ✗→✓ | ▲ Improved | — | — |
| case-10 | ✗→✓ | ▲ Improved | — | — |
| case-04 | ✓→✓ | = Same ✓ | — | — |
| case-16 | ✓→✓ | = Same ✓ | — | — |
| case-03 | ✓→✓ | = Same ✓ | — | — |
Do not use for encrypting artifacts (signing provides integrity, not confidentiality), for container image signing specifically (use cosign), or for source code authentication (use commit signing).
bash# Generate GPG key for artifact signing gpg --full-generate-key --batch <<EOF Key-Type: eddsa Key-Curve: ed25519 Subkey-Type: eddsa Subkey-Curve: ed25519 Name-Real: CI Build System Name-Email: ci-signing@company.com Expire-Date: 1y %no-protection EOF # Export public key for distribution gpg --armor --export ci-signing@company.com > signing-key.pub # Export private key for CI/CD (store in secrets manager) gpg --armor --export-secret-keys ci-signing@company.com > signing-key.priv
yaml# .github/workflows/build-sign.yml name: Build and Sign on: push: tags: ['v*'] jobs: build-sign: runs-on: ubuntu-latest permissions: contents: write id-token: write # For Sigstore keyless signing steps: - uses: actions/checkout@v4 - name: Build artifacts run: | make build sha256sum dist/* > dist/checksums.sha256 - name: Import GPG Key run: | echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --batch --import gpg --list-secret-keys - name: Sign artifacts run: | for file in dist/*; do gpg --detach-sign --armor --local-user ci-signing@company.com "$file" done - name: Install cosign for keyless signing uses: sigstore/cosign-installer@v3 - name: Keyless sign with Sigstore run: | for file in dist/*.tar.gz; do cosign sign-blob "$file" \ --output-signature "${file}.sig" \ --output-certificate "${file}.cert" \ --yes done - name: Create Release with signed artifacts uses: softprops/action-gh-release@v2 with: files: | dist/* dist/*.asc dist/*.sig dist/*.cert
bash# Verify GPG signature gpg --import signing-key.pub gpg --verify artifact.tar.gz.asc artifact.tar.gz # Verify Sigstore keyless signature cosign verify-blob artifact.tar.gz \ --signature artifact.tar.gz.sig \ --certificate artifact.tar.gz.cert \ --certificate-identity ci-signing@company.com \ --certificate-oidc-issuer https://token.actions.githubusercontent.com # Verify checksums sha256sum --check checksums.sha256
json{ "scripts": { "prepublishOnly": "npm run build && npm run test" }, "publishConfig": { "provenance": true } }
bash# Publish npm package with provenance attestation npm publish --provenance
| Term | Definition | |------|------------| | Code Signing | Cryptographic process of signing software artifacts to verify publisher identity and artifact integrity | | Detached Signature | Signature stored in a separate file from the artifact, allowing independent distribution | | Keyless Signing | Sigstore's approach using short-lived certificates tied to OIDC identities instead of long-lived keys | | Provenance | Metadata describing how, where, and by whom an artifact was built | | Transparency Log | Append-only log (Rekor) that records all signing events for public auditability | | Trust Chain | Hierarchical chain from root CA to signing certificate establishing trust in the signer's identity | | SLSA | Supply-chain Levels for Software Artifacts — framework defining levels of supply chain security |
Context: An open-source project needs to sign release artifacts so users can verify authenticity and detect tampering.
Approach:
cosign sign-blob using OIDC identityPitfalls: GPG key compromise requires revoking and re-signing all artifacts. Sigstore keyless signing avoids this by using ephemeral keys. Long-lived signing keys in CI/CD secrets are a supply chain risk if the CI system is compromised.
Artifact Signing Report
========================
Pipeline: Build and Sign v2.3.0
Date: 2026-02-23
Signing Method: Sigstore Keyless + GPG
SIGNED ARTIFACTS:
app-v2.3.0-linux-amd64.tar.gz
GPG: PASS (ci-signing@company.com, EdDSA/Ed25519)
Sigstore: PASS (Rekor entry: 24658135, Fulcio cert issued)
SHA256: a1b2c3d4...
app-v2.3.0-darwin-arm64.tar.gz
GPG: PASS
Sigstore: PASS (Rekor entry: 24658136)
SHA256: e5f6g7h8...
checksums.sha256
GPG: PASS (detached signature)
TRANSPARENCY LOG:
Entries recorded: 3
Log index range: 24658135-24658137
Verification: https://search.sigstore.dev| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-19 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-14 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-21 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-04 | pass→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-18 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-16 | pass→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-23 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-06 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-03 | pass→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-08 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-02 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-12 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-10 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-13 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-11 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-17 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-01 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-05 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-07 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-09 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-15 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-20 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-22 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 23 cases were attempted, and 22 counted toward the lift figure. The other 1 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +9 percentage points is the difference between those two pass rates over the 22 comparable cases.
The per-case answers from this run were removed by the retention sweep, so the case table below shows the verdicts without the text either arm produced. The counts above were recorded at the time and are unaffected. Answers are now kept for 180 days.
Other measured skills in the registry, with their headline benchmark lift.