File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ It also automatically builds and tests your code using [GitHub Actions](https://
2525* Static code analysis using [ CodeQL] ( https://codeql.github.com/ ) and [ Go Report Card] ( https://goreportcard.com/ ) .
2626* Coverage analysis using the [ go-test-coverage action] ( https://github.com/vladopajic/go-test-coverage ) .
2727* Security analysis using [ OpenSSF] ( https://securityscorecards.dev ) .
28+ * Signed binary artifacts using [ Sigstore] ( https://www.sigstore.dev/ ) 's [ cosign] ( https://github.com/sigstore/cosign ) .
2829
2930## How to use
3031
@@ -114,3 +115,18 @@ Issues are welcome.
114115
115116PRs are also welcome, but keep in mind that this is a very opinionated template, so not all changes will be accepted.
116117PRs also need to ensure that test coverage remains high, and best practices are followed.
118+
119+ ## How to verify binary signatures
120+
121+ 1. Download the three `checksums` files. They should end in `_checksums.txt`, `_checksums.txt.pem`, and `_checksums.txt.sig`.
122+ 2. Verify using [cosign](https://github.com/sigstore/cosign). For example:
123+
124+ ```bash
125+ cosign verify-blob \
126+ --certificate-oidc-issuer https://token.actions.githubusercontent.com \
127+ --certificate-identity=https://github.com/smlx/go-cli-github/.github/workflows/release.yaml@refs/heads/main \
128+ --signature ./go-cli-github_0.13.0_checksums.txt.sig \
129+ --cert ./go-cli-github_0.13.0_checksums.txt.pem \
130+ ./go-cli-github_0.13.0_checksums.txt
131+ Verified OK
132+ ```
You can’t perform that action at this time.
0 commit comments