Skip to content

Commit dcb3928

Browse files
authored
[codex] Pin GitHub Actions workflow references (#515)
## Summary Pin floating external GitHub Actions workflow refs to immutable SHAs. ## Why See the rationale doc: https://docs.google.com/document/d/1qOURCNx2zszQ0uWx7Fj5ERu4jpiYjxLVWBWgKa2wTsA/edit?tab=t.0 ## Validation - `rg -n --pcre2 "uses:\s*(?!\./)(?!docker://)[^#\n]+@(?![0-9a-f]{40}(?:\s+#.*)?$)\S+" .github/workflows` - `git diff --check` - `git diff --stat -- .github/workflows`
1 parent 6ec8149 commit dcb3928

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/build_wheels.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ jobs:
2020
python-version: [39, 310, 311, 312, 313, 313t, 314, 314t]
2121

2222
steps:
23-
- uses: actions/checkout@v6
23+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2424

25-
- uses: pypa/cibuildwheel@v3.1.4
25+
- uses: pypa/cibuildwheel@65b8265957fd86372d9689a0acdfd55813970d5d # v3.1.4
2626
env:
2727
CIBW_BUILD: "cp${{ matrix.python-version}}-*"
2828
CIBW_ENABLE: cpython-freethreading
2929

30-
- uses: actions/upload-artifact@v6
30+
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
3131
with:
3232
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
3333
path: ./wheelhouse/*.whl
@@ -43,10 +43,10 @@ jobs:
4343
python-version: [39, 310, 311, 312, 313, 313t, 314, 314t]
4444

4545
steps:
46-
- uses: actions/checkout@v6
46+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
4747

4848
- name: Build wheels
49-
uses: pypa/cibuildwheel@v3.1.4
49+
uses: pypa/cibuildwheel@65b8265957fd86372d9689a0acdfd55813970d5d # v3.1.4
5050
env:
5151
CIBW_BUILD: "cp${{ matrix.python-version}}-*"
5252
CIBW_ARCHS: aarch64
@@ -55,7 +55,7 @@ jobs:
5555
CIBW_ENVIRONMENT_LINUX: PATH="$PATH:$HOME/.cargo/bin" CARGO_NET_GIT_FETCH_WITH_CLI=true
5656
CIBW_ENABLE: cpython-freethreading
5757

58-
- uses: actions/upload-artifact@v6
58+
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
5959
with:
6060
name: cibw-wheels-aarch64-${{ matrix.os }}-${{ strategy.job-index }}
6161
path: ./wheelhouse/*.whl
@@ -65,8 +65,8 @@ jobs:
6565
runs-on: ubuntu-latest
6666
timeout-minutes: 60
6767
steps:
68-
- uses: actions/checkout@v6
69-
- uses: actions/setup-python@v6
68+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
69+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
7070
name: Install Python
7171
with:
7272
python-version: "3.9"
@@ -78,7 +78,7 @@ jobs:
7878
run: |
7979
pip install --upgrade build
8080
python -m build --sdist
81-
- uses: actions/upload-artifact@v6
81+
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
8282
with:
8383
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
8484
path: ./dist/*.tar.gz
@@ -89,7 +89,7 @@ jobs:
8989
needs: [build_wheels, build_wheels_aarch64, build_sdist]
9090
steps:
9191
- name: Merge artifacts
92-
uses: actions/upload-artifact/merge@v4
92+
uses: actions/upload-artifact/merge@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
9393
with:
9494
name: cibw-wheels
9595
pattern: cibw-wheels-*

0 commit comments

Comments
 (0)