Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cosign signature check #1255

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 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,14 @@ 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 '.*' \
ORG=${GITHUB_ACTOR:-containers}
GIT_REF=refs/heads/main
cosign verify-blob conmonrs \
--certificate-identity "https://github.com/$ORG/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 "$ORG/conmon-rs" \
--certificate-github-workflow-ref $GIT_REF \
--signature conmonrs.sig \
--certificate conmonrs.cert

Expand Down