Skip to content

Commit 2f4439d

Browse files
security: pin GitHub Actions to full commit SHAs
Pins third-party GitHub Actions (`actions/checkout` and `jdx/mise-action`) to full immutable commit SHAs in CI workflows (`check.yml` and `docs.yml`). This mitigates supply chain risks and tag-spoofing vulnerabilities.
1 parent 2a1780f commit 2f4439d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎.github/workflows/check.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
- "3.13"
1818
- "3.12"
1919
steps:
20-
- uses: actions/checkout@v7
21-
- uses: jdx/mise-action@v4
20+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
21+
- uses: jdx/mise-action@500809d363d3fb4f307ee44f24ef3381a1792a7e # v2
2222
with:
2323
tool_versions: |
2424
python ${{ matrix.python-version }}

‎.github/workflows/docs.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ jobs:
1010
deploy:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v7
14-
- uses: jdx/mise-action@v4
13+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
14+
- uses: jdx/mise-action@500809d363d3fb4f307ee44f24ef3381a1792a7e # v2
1515
- name: Configure Git Credentials
1616
run: |
1717
git config user.name github-actions[bot]

0 commit comments

Comments
 (0)