Skip to content

pin github actions #15645

@danmoseley

Description

@danmoseley

as best practice, github actions should be pinned to a SHA as it makes it significantly harder to replace them with a hostile version.

I found the npm package described in https://github.com/mheap/pin-github-action to work well (it will do one file or folder at a time).

I did it for a couple repos eg dotnet/extensions#6123

I'm not going to do it for arcade because possibly there are actions that expect to float right now, and those will need looking at.

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