goreleaser / goreleaser-example-supply-chain Goto Github PK
View Code? Open in Web Editor NEWExample goreleaser + github actions config with keyless signing and SBOM generation
Home Page: https://goreleaser.com
License: MIT License
Example goreleaser + github actions config with keyless signing and SBOM generation
Home Page: https://goreleaser.com
License: MIT License
When configuring docker_signs
/ signs
with cosign
, and cosign
is >=2.0.0, --yes
argument is needed.
An example log with failing Release action:
Using payload from: dist/peribolos-owners-syncer_0.1.2_SHA256SUMS
Generating ephemeral keys...
Retrieving signed certificate...
Successfully verified SCT...
Note that there may be personally identifiable information associated with this signed artifact.
This may include the email address associated with the account with which you authenticate.
This information will be used for signing this artifact and will be stored in public transparency logs and cannot be removed later.
By typing 'y', you attest that you grant (or have permission to grant) and agree to have this information stored permanently in transparency logs.
Are you sure you would like to continue? [y/N] Error: signing dist/peribolos-owners-syncer_0.1.2_SHA256SUMS: upload to tlog: user declined the prompt
main.go:74: error during command execution: signing dist/peribolos-owners-syncer_0.1.2_SHA256SUMS: upload to tlog: user declined the prompt
• took: 1s
⨯ release failed after 3m19s error=sign: cosign failed: exit status 1: Using payload from: dist/peribolos-owners-syncer_0.1.2_SHA256SUMS
GoReleaser config:
...
# signs our docker image
# https://goreleaser.com/customization/docker_sign
docker_signs:
- cmd: cosign
env:
- COSIGN_EXPERIMENTAL=1
artifacts: images
output: true
args:
- 'sign'
- '${artifact}'
...
GitHub action:
...
- name: Publish release
uses: goreleaser/goreleaser-action@f82d6c1c344bcacabba2c841718984797f664a6b #4.2.0
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
...
The commands in the README for blob verification do not work with cosign 2.0. They fail with the following error:
--certificate-identity or --certificate-identity-regexp is required for verification in keyless mode
I'm still trying to figure out what I'm doing wrong, but I thought I'd open an issue early in case this is a known issue or in case someone else faces the same problem.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.