Skip to content

Feature: only accept reusable workflow pinned by version #12

@laurentsimon

Description

@laurentsimon

The reusable workflow can be pinned by hash, version or tag in general.

However:

  1. Pinned by hash makes it pretty hard to retrieve the branch during verification.
  2. Pinned by branch (like main) should be discouraged.

The OIDC token (which we use to retrieve the workflow identity/pin) currently does not report the version/branch used. So for now we will only accept version/tag pinning during verification. Once GitHub adds support, we can accept hash pins.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions