Skip to content

Update all github workflow to use actions tied to sha hashes #15298

Description

@Omega359

Is your feature request related to a problem or challenge?

A recent supply chain attack has made it extremely apparent that github workflows should only use actions that are tied to a specific hash, not a version. This applies to any non-github, non-apache action of which there seems to be a few:

an example of how to use a sha hash instead of a version can be seen in the extended.yml file:

uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

No response

Activity

  1. alamb commented on Mar 18, 2025

    @alamb
    Contributor

    Thank you @Omega359 -- I agree this is very important

  2. alamb commented on Mar 18, 2025

    @alamb
    Contributor

    I think this is a good first issue as the write up is clear and there is an example to follow

  3. TDHSC commented on Mar 18, 2025

    @TDHSC
    Contributor

    take

  4. SanjayUG commented on Mar 19, 2025

    @SanjayUG

    Hi there,

    I just checked this issue and tried to solved it.

    Feel free for feedback.

    Thank You.

  5. findepi commented on Jun 16, 2025

    @findepi
    Member

    A recent supply chain attack has made it extremely apparent that github workflows should only use actions that are tied to a specific hash, not a version. This applies to any non-github, non-apache action of which there seems to be a few:

    This is very important.
    I don't understand why Github actions copied design from Docker world, where a version string is not a version 😞

    Do you know if there is any automation to lint workflows for mutable-version-ref actions?
    Even if we solve this problem today (which we should!), automation could help us not get back to a bad state.

    Do you maybe know if an action can be composite and reference downstream actions, potentially with mutable-version-ref? Is there an equivalent of Cargo.lock / package-lock.json for workflows? (i doubt but ...)

  6. alamb commented on Jun 17, 2025

    @alamb
    Contributor

    Do you know if there is any automation to lint workflows for mutable-version-ref actions?

    I do now know of any myself

  7. alamb commented on Dec 1, 2025

    @alamb
    Contributor

    I think we have basically done this , eg

    uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2

    Let's close this one now and we can reopen if there is more work to be done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions