Skip to content

Consider using a release tag instead of @main in GitHub Actions examples #299

@drewradcliff

Description

@drewradcliff

The README examples use:

uses: millionco/react-doctor@main

Since main is a mutable branch, workflows will execute whatever code that branch points to at runtime. When granting permissions such as pull-requests: write, this adds risk for supply-chain attack if the repo/branch is compromised.

Similar incident happened in actions like Trivy GHSA-69fq-xp46-6x23

Maybe adding a note optionally adding commit SHA pinning for hardened CI?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions