Skip to content

Commit 343d642

Browse files
authored
ci: pin GitHub Actions and add a 7-day Dependabot cooldown (#1408)
GitHub Actions currently use mutable version tags, so retargeting a tag can change the code executed by workflows. Pin all 11 action references across four workflows to full commit SHAs resolved from their existing tags, retaining version comments. [https://aka.ms/pinning-requirement](https://docs.opensource.microsoft.com/announcements/2026-08-07-github-actions-commit-pinning/) Add Dependabot configuration for GitHub Actions with weekly checks, grouped updates, and a 7-day cooldown before proposing new releases. This provides time for compromised releases to be detected before version updates are proposed. Validation: verified SHA mappings using the GitHub API; YAML validation and `git diff --cached --check` passed. `uv run --no-sync pytest tests/cli/test_main.py --no-cov -q`: 29 passed, 1 skipped because the OpenVINO EP is unavailable.
1 parent f831830 commit 343d642

5 files changed

Lines changed: 23 additions & 11 deletions

File tree

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: "/"
5+
schedule:
6+
interval: weekly
7+
cooldown:
8+
default-days: 7
9+
groups:
10+
github-actions:
11+
patterns:
12+
- "*"

.github/workflows/codeql.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ jobs:
2525

2626
steps:
2727
- name: Checkout repository
28-
uses: actions/checkout@v4
28+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
2929

3030
- name: Initialize CodeQL
31-
uses: github/codeql-action/init@v4
31+
uses: github/codeql-action/init@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v4
3232
with:
3333
languages: python
3434
queries: security-extended,security-and-quality
3535

3636
- name: Autobuild
37-
uses: github/codeql-action/autobuild@v4
37+
uses: github/codeql-action/autobuild@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v4
3838

3939
- name: Perform CodeQL Analysis
40-
uses: github/codeql-action/analyze@v4
40+
uses: github/codeql-action/analyze@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v4

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ jobs:
2020
deploy:
2121
runs-on: ubuntu-latest
2222
steps:
23-
- uses: actions/checkout@v4
23+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
2424
with:
2525
fetch-depth: 0
2626

27-
- uses: astral-sh/setup-uv@v3
27+
- uses: astral-sh/setup-uv@caf0cab7a618c569241d31dcd442f54681755d39 # v3
2828
with:
2929
python-version: "3.11"
3030

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818
timeout-minutes: 10
1919

2020
steps:
21-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
2222

2323
- name: Install uv
24-
uses: astral-sh/setup-uv@v4
24+
uses: astral-sh/setup-uv@38f3f104447c67c051c4a08e39b64a148898af3a # v4
2525

2626
- name: Set up Python
2727
run: uv python install 3.11

.github/workflows/modelkit-ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ jobs:
4040
name: test (${{ matrix.group }})
4141

4242
steps:
43-
- uses: actions/checkout@v4
43+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
4444

4545
- name: Install uv
46-
uses: astral-sh/setup-uv@v4
46+
uses: astral-sh/setup-uv@38f3f104447c67c051c4a08e39b64a148898af3a # v4
4747
with:
4848
enable-cache: true
4949
cache-dependency-glob: pyproject.toml
@@ -53,7 +53,7 @@ jobs:
5353

5454
- name: Set up Node.js
5555
if: matrix.group == 'remaining'
56-
uses: actions/setup-node@v4
56+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
5757
with:
5858
node-version: 22
5959

0 commit comments

Comments
 (0)