Skip to content

Commit 29c8879

Browse files
committed
Pin to hash for all actions workflows
Xref https://docs.zizmor.sh/audits/#unpinned-uses
1 parent a50ad67 commit 29c8879

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/pypi-release.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ jobs:
2222
runs-on: ubuntu-latest
2323
if: github.repository == 'xarray-contrib/cupy-xarray'
2424
steps:
25-
- uses: actions/checkout@v4
25+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2626
with:
2727
fetch-depth: 0
2828
persist-credentials: false
2929

3030
- name: Install Python
31-
uses: actions/setup-python@v5
31+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
3232
with:
3333
python-version: "3.10"
3434

@@ -53,7 +53,9 @@ jobs:
5353
else
5454
echo "✅ Looks good"
5555
fi
56-
- uses: actions/upload-artifact@v4
56+
57+
- name: Store the distribution packages
58+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
5759
with:
5860
name: releases
5961
path: dist
@@ -63,12 +65,13 @@ jobs:
6365
if: github.event_name == 'release'
6466
runs-on: ubuntu-latest
6567
steps:
66-
- uses: actions/download-artifact@v4
68+
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
6769
with:
6870
name: releases
6971
path: dist
72+
7073
- name: Publish package to PyPI
71-
uses: pypa/[email protected]
74+
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
7275
with:
7376
user: __token__
7477
password: ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)