Skip to content

Commit

Permalink
Update cosign verify instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
richardfan1126 committed Sep 8, 2024
1 parent 2f73705 commit 4ae54b6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,17 @@ _(You can choose one to perform depending on you requirements):_

```bash
cosign verify <artifact_uri> \
--certificate-identity-regexp "<github_repo_url>" \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
--certificate-oidc-issuer https://token.actions.githubusercontent.com \
--certificate-identity "<github_action_workflow_ref>" \
--certificate-github-workflow-repository "<github_repo_name>"
```

E.g.
```bash
cosign verify ghcr.io/richardfan1126/how-high-is-my-salary-enclave-app:538f821a3cacf8370a4a707f79fc26476bc27bb6 \
--certificate-identity-regexp "https://github.com/richardfan1126/how-high-is-my-salary-enclave-app/" \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
--certificate-oidc-issuer https://token.actions.githubusercontent.com \
--certificate-identity "https://github.com/richardfan1126/how-high-is-my-salary-enclave-app/.github/workflows/build-and-sign-eif.yaml@refs/heads/main" \
--certificate-github-workflow-repository "richardfan1126/how-high-is-my-salary-enclave-app"
```

If the artifact is signed using the correct GitHub Action workflow, you will see the following message.
Expand Down

0 comments on commit 4ae54b6

Please sign in to comment.