Skip to content

Add option to validate attestation Source Repository metadata #1891

@igaskin

Description

@igaskin

Description

GitHub attestations also publish Source Repository metadata. example It would be useful to have the option to also check this metadata to validate, for example, the artifact was generated as part of a master branch (denoted by Source Repository Ref).

sample image policy snippet

    keyless:
      identities:
      - issuer: https://token.actions.githubusercontent.com
        subjectRegExp: ^https://github.com/github/artifact-attestations-helm/charts/.github/workflows/.*@refs/tags/trust-policies-v0.7.0$
        subjectSourceRef: refs/tags/trust-policies-v0.7.0 <--- suggested field addition.
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions