Skip to content

Add hashes to GH actions plugins#2324

Open
ktbyers wants to merge 4 commits into
napalm-automation:developfrom
ktbyers:gh_actions_sha
Open

Add hashes to GH actions plugins#2324
ktbyers wants to merge 4 commits into
napalm-automation:developfrom
ktbyers:gh_actions_sha

Conversation

@ktbyers

@ktbyers ktbyers commented May 26, 2026

Copy link
Copy Markdown
Contributor

Make some improvements with respect to GH actions security.

ktbyers added 3 commits May 26, 2026 09:39
Replace floating version tags with full commit SHAs to prevent
supply-chain attacks where a tag is silently moved to a malicious
commit.  The original tag is retained as an inline comment for
human readability.

actions/checkout:   v4 -> 34e114876b0b11c390a56381ad16ebd13914f8d5
astral-sh/setup-uv: v5 -> d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86
Replace floating tags and branch reference with full commit SHAs.
The original tag/branch is retained as an inline comment.

actions/checkout:            v3     -> f43a0e5ff2bd294095638e18286ca9a3d1956744
actions/setup-python:        v4     -> 7f4fc3e22c37d6ff65e88745f38bd3157c663f7c
pypa/gh-action-pypi-publish: master -> c1b34028248d0c9f7d90fe29fef2122e2276ff6f

Note: pypa/gh-action-pypi-publish was pinned to 'master' (a mutable
branch ref) which is the highest risk form -- any push to that branch
would have been picked up by the next workflow run.
Switch from the master branch SHA to the v1.14.0 release tag SHA
(cef221092ed1bacb1cc03d23a2d87d1d172e277b), released 2026-04-07.
A named release tag is preferable to a raw branch SHA as it is
meaningful to human reviewers and tied to a specific changelog entry.

@bewing bewing left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants