implementing-code-signing-for-artifacts

Featured

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.

AI & Automation 36,355 stars 4443 forks Updated 2 months ago Apache-2.0

Install

View on GitHub

Quality Score: 94/100

Stars 20%
100
Recency 20%
75
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Implementing Code Signing for Artifacts ## When to Use - When establishing artifact integrity verification to prevent supply chain tampering - When compliance requires cryptographic proof that build artifacts are authentic and unmodified - When distributing software to customers who need to verify publisher identity - When implementing zero-trust deployment pipelines that reject unsigned artifacts - When meeting SLSA Level 2+ requirements for provenance and integrity **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). ## Prerequisites - GPG key pair for traditional signing or Sigstore account for keyless signing - Code signing certificate from a Certificate Authority for public distribution - CI/CD pipeline with access to signing keys or identity provider - Verification infrastructure in deployment pipelines ## Workflow ### Step 1: Generate and Manage Signing Keys ```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@c...

Details

Author
mukul975
Repository
mukul975/Anthropic-Cybersecurity-Skills
Created
8 months ago
Last Updated
2 months ago
Language
Python
License
Apache-2.0

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category