Skip to content

Commit b1b01c7

Browse files
authored
Merge pull request #11 from Devathmaj/security-hardening
Fix cosign sign image reference (lowercase OCI ref)
2 parents d200bad + 71365c4 commit b1b01c7

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,11 @@ jobs:
120120
- name: Install cosign
121121
uses: sigstore/cosign-installer@6f9f17788090df1f26f669e9d70d6ae9567deba6 # v4.1.2
122122

123+
- name: Lowercase image name (OCI references are case-sensitive)
124+
run: echo "IMAGE_NAME=${IMAGE_NAME,,}" >> "$GITHUB_ENV"
125+
env:
126+
IMAGE_NAME: ${{ env.IMAGE_NAME }}
127+
123128
- name: Sign the published Docker image
124129
env:
125130
IMAGE: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@${{ steps.build.outputs.digest }}

0 commit comments

Comments
 (0)