Skip to content

Commit

Permalink
cosign
Browse files Browse the repository at this point in the history
Signed-off-by: Sertac Ozercan <[email protected]>
  • Loading branch information
sozercan committed Jan 16, 2024
1 parent 1093176 commit e1321d4
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/patch-models.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,22 @@ jobs:
image-report: 'report.json'
patched-tag: 'patched'

- name: Install Cosign
uses: sigstore/cosign-installer@9614fae9e5c5eddabb09f90a270fcb487c9f7149 # v3.3.0

- name: Docker Push Patched Image
if: steps.copa.conclusion == 'success'
run: |
docker tag ${{ steps.copa.outputs.patched-image }} ${{ matrix.images }}
docker images
# docker push ${{ matrix.images }}-test
docker push ${{ matrix.images }}
echo "DIGEST=$(cosign triangulate ${{ matrix.images }} --type digest)" >> $GITHUB_ENV
- name: Sign the images with GitHub OIDC Token
run: cosign sign --yes ${DIGEST}

- name: Verify image signature
run: |
cosign verify ${DIGEST} \
--certificate-oidc-issuer https://token.actions.githubusercontent.com \
--certificate-identity-regexp 'https://github\.com/sozercan/aikit/\.github/workflows/.+'

0 comments on commit e1321d4

Please sign in to comment.