Skip to content

Harden supply chain - SHA-pin actions #42

@jliao-godaddy

Description

@jliao-godaddy

https://safedep.io/tanstack-github-actions-cache-poisoning/

To not be vulnerable to fork attacks like above, can consider pinning GH actions to full commit SHAs instead of version tags. For example, this release workflow uses version tags and can also publish to npm. One example is to possibly consider changing something like uses uses: pnpm/action-setup@v6.0.5 to uses: pnpm/action-setup@<full_commit_sha> #v6.0.5

Additionally, can also add a config file in root to including the settings mentioned here: https://gajus.com/blog/3-pnpm-settings-to-protect-yourself-from-supply-chain-attacks

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