Skip to content

security(ci): pin GHA using immutable digests instead of mutable versions #597

@pfarikrispy

Description

@pfarikrispy

Problem

Your GitHub Actions are not using immutable version pins, which increases the chance of supply chain attacks. Using the SHA digests is more secure and pretty easy to do. 😄

Proposed idea

runs:
  using: "composite"
  steps:
    - name: Setup Node
      uses: actions/setup-node@v6

Replace the action's version v6 with the current SHA and let Renovate/dependabot keep it updated.

Why it fits this project

It hardens the project, which helps devs detect vulns, against hostile takeovers and supply chain attacks of your users.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ciCI/CD pipeline and workflow issuesenhancementNew feature or requestgh action

    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