Skip to content

Commit

Permalink
fix: remove registry-1.docker.io prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
soniqua committed Nov 20, 2024
1 parent ff030a1 commit eabee07
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/sigstore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ jobs:
uses: actions/checkout@main
with:
fetch-depth: 0
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Install Cosign
uses: sigstore/[email protected]
- name: Check Cosign
Expand All @@ -26,8 +31,8 @@ jobs:
# Obtain the digest from this tag
DIGEST=$(curl "https://hub.docker.com/v2/repositories/snyk/snyk-universal-broker/tags/${LATEST_TAG}" | jq '.digest' -r)
# Sign the image, using GitHub as an OIDC provider
cosign sign --yes oci://registry-1.docker.io/snyk/snyk-universal-broker-helm@${DIGEST}
cosign sign --yes snyk/snyk-universal-broker-helm@${DIGEST}
- name: Verify signature
run: |
cosign verify oci://registry-1.docker.io/snyk/snyk-universal-broker-helm@${DIGEST}
cosign verify oci://registry-1.docker.io/snyk/snyk-universal-broker-helm@${LATEST_TAG}
cosign verify snyk/snyk-universal-broker-helm@${DIGEST}
cosign verify snyk/snyk-universal-broker-helm@${LATEST_TAG}

0 comments on commit eabee07

Please sign in to comment.