Skip to content

Commit 5e1f16e

Browse files
committed
Pin GitHub Actions to commit SHAs for supply chain security
1 parent da7a5b9 commit 5e1f16e

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/cibuildwheel.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
os: [macos-13, macos-14]
1818

1919
steps:
20-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
2121
# aarch64 (arm) is built via qemu emulation
2222
# QEMU is sadly too slow. We need to wait for public ARM support
2323
#- name: Set up QEMU
@@ -26,14 +26,14 @@ jobs:
2626
# with:
2727
# platforms: all
2828
- name: Build wheels
29-
uses: pypa/cibuildwheel@v2.19.1
29+
uses: pypa/cibuildwheel@b28b40222781ae92b339750bb0962630c8d31757 # v2.19.1
3030
env:
3131
CIBW_ARCHS_LINUX: auto
3232
with:
3333
package-dir: .
3434
output-dir: wheelhouse
3535
config-file: "{package}/pyproject.toml"
36-
- uses: actions/upload-artifact@v4
36+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
3737
with:
3838
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
3939
path: ./wheelhouse/*.whl
@@ -42,11 +42,11 @@ jobs:
4242
name: Build source distribution
4343
runs-on: ubuntu-latest
4444
steps:
45-
- uses: actions/checkout@v4
45+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
4646

4747
- name: Build sdist
4848
run: pipx run build --sdist
49-
- uses: actions/upload-artifact@v4
49+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
5050
with:
5151
name: cibw-sdist
5252
path: dist/*.tar.gz
@@ -80,15 +80,15 @@ jobs:
8080
echo "FULL_TAG=$TAG_NAME" >> $GITHUB_ENV
8181
echo "TAG_NAME=$TAG_NAME" >> $GITHUB_ENV
8282
echo "IS_PRERELEASE=$IS_PRERELEASE" >> $GITHUB_ENV
83-
- uses: actions/download-artifact@v4
83+
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
8484
with:
8585
# unpacks all CIBW artifacts into dist/
8686
pattern: cibw-*
8787
path: dist
8888
merge-multiple: true
8989
- name: Create Draft Release
9090
id: create_release
91-
uses: softprops/action-gh-release@v2
91+
uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2
9292
if: startsWith(github.ref, 'refs/tags/')
9393
env:
9494
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/publish_pypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ jobs:
2121
# or, alternatively, upload to PyPI on every tag starting with 'v' (remove on: release above to use this)
2222
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
2323
steps:
24-
- uses: robinraju/release-downloader@v1
24+
- uses: robinraju/release-downloader@daf26c55d821e836577a15f77d86ddc078948b05 # v1
2525
with:
2626
tag: ${{ github.event.release.tag_name }}
2727
fileName: '*'
2828
out-file-path: 'dist'
29-
- uses: pypa/gh-action-pypi-publish@release/v1
29+
- uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # release/v1

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ jobs:
3131

3232
steps:
3333
- name: Check out repo
34-
uses: actions/checkout@v3
34+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
3535

3636
- name: Configure Python version
37-
uses: actions/setup-python@v5
37+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
3838
with:
3939
python-version: ${{ matrix.python_version }}
4040
architecture: arm64

0 commit comments

Comments
 (0)