-
Notifications
You must be signed in to change notification settings - Fork 76
CLI: Expose verification for GitHub-specific claims #322
Copy link
Copy link
Closed
Labels
component:cliCLI componentsCLI componentscomponent:verificationCore verification functionalityCore verification functionalityenhancementNew feature or requestNew feature or request
Milestone
Description
Description
I noticed that Cosign has a series of flags for checking the signing certificate extensions. From the help text:
--certificate-github-workflow-name string contains the workflow claim from the GitHub OIDC Identity token that contains the name of the executed workflow.
--certificate-github-workflow-ref string contains the ref claim from the GitHub OIDC Identity token that contains the git ref that the workflow run was based upon.
--certificate-github-workflow-repository string contains the repository claim from the GitHub OIDC Identity token that contains the repository that the workflow run was based upon
--certificate-github-workflow-sha string contains the sha claim from the GitHub OIDC Identity token that contains the commit SHA that the workflow run was based upon.
--certificate-github-workflow-trigger string contains the event_name claim from the GitHub OIDC Identity token that contains the name of the event that triggered the workflow run
This should be a good fit for @woodruffw's policy API.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
component:cliCLI componentsCLI componentscomponent:verificationCore verification functionalityCore verification functionalityenhancementNew feature or requestNew feature or request