Skip to content

Use lockfiles for github action dependencies #5530

Open

Description

@IAlibay

For security purposes, we should switch to hashes instead of versions. See: https://docs.github.com/en/actions/reference/security/secure-use#using-third-party-actions

Activity

  1. self-assigned this
    on Oct 27, 2026
  2. IAlibay commented on Oct 27, 2026

    @IAlibay
    MemberAuthor

    Will aim to do this as part of my post-release cleanup.

  3. orbeckst commented on Nov 13, 2026

    @orbeckst
    Member

    What do you think about enabling dependabot to help keeping GH actions updated, too?

  4. IAlibay commented on Nov 13, 2026

    @IAlibay
    MemberAuthor

    Dependabot is actually counterintuitive in terms of safety - essentially it's caused incidents by trying to update too quickly as soon as a new release is out. We've seen it be used as an attack vector before.

  5. tylerjereddy commented on Nov 13, 2026

    @tylerjereddy
    Member

    Dependabot is actually counterintuitive in terms of safety - essentially it's caused incidents by trying to update too quickly as soon as a new release is out. We've seen it be used as an attack vector before.

    You can force it to use a 7-day+ cooldown before adopting a new release to mitigate that. After a week or two, most supply chain stuff gets discovered/yanked/patched. I'm not necessarily saying we should use dependabot--it is indeed polarizing in the community.

    And, apologies for making this even more complicated, but an even more secure alternative is now being proposed via GitHub actions lockfiles. See https://hugovk.dev/blog/2026/lock-github-actions/ for example. There's some debate around starting to adopt that selectively upstream, with perhaps some desire to a wait a little bit longer since it just entered general availability.

  6. tylerjereddy commented on Nov 13, 2026

    @tylerjereddy
    Member

    To clarify, the main reason I believe that's more secure is that it also locks transitive GHA deps as well. The lockfile is also fairly human readable.

  7. IAlibay commented on Nov 13, 2026

    @IAlibay
    MemberAuthor

    I 100% agree with @tylerjereddy - we should be u sing llock files instead. The original issue, I think, was made before lock files were officially supported.

    I'm going to rename the issue to match it.

  8. changed the title [-]Use hashes instead of versions for CI actions[/-] [+]Use lockfiles for github action dependencies[/+] on Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions