Skip to content

Clarification on SHA pinning for wildcard-approved actions #385

@ongdisheng

Description

@ongdisheng

Hi,

I noticed that actions-cool/maintain-one-comment@* is in the approved_patterns.yml with a wildcard while the README states:

"Always pin actions to exact commit SHAs, never use tags or branch references."

Could you clarify if:

  1. For actions with @* wildcard, we should still use SHA (e.g., @4b2dbf086015f892dcb5e8c1106f5fccd6c1476b)
  2. Or the wildcard means version tags are acceptable (e.g., @v3)

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions