We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41fd66c commit af9f30fCopy full SHA for af9f30f
.github/workflows/container.yml
@@ -147,8 +147,11 @@ jobs:
147
COSIGN_EXPERIMENTAL: "true"
148
run: |
149
echo "Signing image with Cosign..."
150
+ # Extract the first tag from the metadata output
151
+ IMAGE_TAG=$(echo "${{ steps.meta.outputs.tags }}" | head -n1)
152
+ echo "Signing image: ${IMAGE_TAG}@${{ steps.build-push.outputs.digest }}"
153
cosign sign --yes \
- ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@${{ steps.build-push.outputs.digest }}
154
+ "${IMAGE_TAG}@${{ steps.build-push.outputs.digest }}"
155
156
- name: Run Trivy container scan
157
uses: aquasecurity/trivy-action@master
0 commit comments