Skip to content

Commit

Permalink
Update cosign signature check
Browse files Browse the repository at this point in the history
The check of the cosign-based keyless signature check accepted any valid
signature.

Signed-off-by: Sascha Grunert <[email protected]>
  • Loading branch information
saschagrunert committed Apr 5, 2023
1 parent 555de7c commit a2b9ff2
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions scripts/get
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ download_binary() {
if [[ $COMMIT == "" ]]; then
COMMIT=$(curl_retry $BASE_URL/latest-main.txt)
fi
echo "Using commit $COMMIT"

mkdir -p "$(dirname "$OUTPUT")"

Expand All @@ -71,9 +72,13 @@ download_binary() {
curl_retry "$BASE_URL/$COMMIT/$FILE" -o "$FILE"
done

COSIGN_EXPERIMENTAL=1 cosign verify-blob conmonrs \
--certificate-identity-regexp '.*' \
--certificate-oidc-issuer-regexp '.*' \
GIT_REF=refs/heads/main
cosign verify-blob conmonrs \
--certificate-identity https://github.com/saschagrunert/conmon-rs/.github/workflows/ci.yml@$GIT_REF \
--certificate-oidc-issuer https://token.actions.githubusercontent.com \
--certificate-github-workflow-name ci \
--certificate-github-workflow-repository saschagrunert/conmon-rs \
--certificate-github-workflow-ref $GIT_REF \
--signature conmonrs.sig \
--certificate conmonrs.cert

Expand Down

0 comments on commit a2b9ff2

Please sign in to comment.