Skip to content

Conversation

peteski22
Copy link
Contributor

No description provided.

@peteski22 peteski22 requested review from daavoo and aittalam August 12, 2025 11:34
@@ -13,10 +13,10 @@ jobs:

steps:
- name: Check out the repository
uses: actions/checkout@v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Copy link
Member

@aittalam aittalam Aug 12, 2025

Choose a reason for hiding this comment

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

Why not directly pin to the corresponding tag?

(I understand the security concern, and am just suggesting the changes to avoid you waste time on rewriting the code... but if you prefer to keep it as-is that's also fine with me. The comment helps to understand what version we are dealing with, so the only con is maintenance but we can deal with that!)

Suggested change
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/[email protected]


- name: Install the latest version of uv and set the python version to 3.13
uses: astral-sh/setup-uv@v6
uses: astral-sh/setup-uv@e92bafb6253dcd438e0484186d7669ea7a8ca1cc # v6.4.3
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
uses: astral-sh/setup-uv@e92bafb6253dcd438e0484186d7669ea7a8ca1cc # v6.4.3
uses: astral-sh/[email protected]

@@ -14,12 +14,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/[email protected]

with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
uses: actions/[email protected]

Copy link
Member

@aittalam aittalam left a comment

Choose a reason for hiding this comment

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

Thank you Peter! I am in favor of pinning these, even if I think the commit hash might be a bit overkill... But you added the corresponding tags as comments, and I think that is close enough to directly pinning to tags while being more secure.

@peteski22 peteski22 merged commit aa5a7a3 into main Aug 22, 2025
1 check passed
@peteski22 peteski22 deleted the peteski22/gha/pin-versions branch August 22, 2025 12:19
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