Skip to content

Commit 4e16855

Browse files
XananasX7copybara-github
authored andcommitted
fix: pin third-party github actions to commit shas
Merge #6229 Pin third-party GitHub Actions to specific commit SHAs in CI and release workflows to harden supply-chain security. PiperOrigin-RevId: 949177003
1 parent c9bacd4 commit 4e16855

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

.github/workflows/continuous-integration.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ jobs:
4040
runs-on: ubuntu-latest
4141
steps:
4242
- name: Checkout Code
43-
uses: actions/checkout@v6
43+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
4444

4545
- name: Run pre-commit checks
46-
uses: pre-commit/action@v3.0.1
46+
uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
4747

4848
# 2. Static type analysis (Mypy Check with Matrix)
4949
# Compares new changes against the target base branch dynamically to support v1.
@@ -56,17 +56,17 @@ jobs:
5656
python-version: ['3.10', '3.11', '3.12', '3.13']
5757
steps:
5858
- name: Checkout code
59-
uses: actions/checkout@v6
59+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
6060
with:
6161
fetch-depth: 0
6262

6363
- name: Set up Python
64-
uses: actions/setup-python@v6
64+
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
6565
with:
6666
python-version: ${{ matrix.python-version }}
6767

6868
- name: Install uv
69-
uses: astral-sh/setup-uv@v7
69+
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
7070
with:
7171
enable-cache: true
7272

@@ -127,15 +127,15 @@ jobs:
127127
timeout-minutes: 10
128128
steps:
129129
- name: Checkout code
130-
uses: actions/checkout@v6
130+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
131131

132132
- name: Set up Python ${{ matrix.python-version }}
133-
uses: actions/setup-python@v6
133+
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
134134
with:
135135
python-version: ${{ matrix.python-version }}
136136

137137
- name: Install the latest version of uv
138-
uses: astral-sh/setup-uv@v7
138+
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
139139
with:
140140
enable-cache: true
141141

@@ -167,15 +167,15 @@ jobs:
167167
timeout-minutes: 10
168168
steps:
169169
- name: Checkout code
170-
uses: actions/checkout@v6
170+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
171171

172172
- name: Set up Python ${{ matrix.python-version }}
173-
uses: actions/setup-python@v6
173+
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
174174
with:
175175
python-version: ${{ matrix.python-version }}
176176

177177
- name: Install the latest version of uv
178-
uses: astral-sh/setup-uv@v7
178+
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
179179
with:
180180
enable-cache: true
181181

.github/workflows/release-publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
exit 1
3737
fi
3838
39-
- uses: actions/checkout@v6
39+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
4040

4141
- name: Determine Release Type and Extract Version
4242
id: version
@@ -67,13 +67,13 @@ jobs:
6767
fi
6868
6969
- name: Install uv
70-
uses: astral-sh/setup-uv@v7
70+
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
7171
with:
7272
version: "latest"
7373
enable-cache: true
7474

7575
- name: Set up Python
76-
uses: actions/setup-python@v6
76+
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
7777
with:
7878
python-version: "3.11"
7979

0 commit comments

Comments
 (0)