Skip to content

Commit aeb3fef

Browse files
committed
GHA: pin actions to commit SHAs as suggested by zizmor
See https://docs.zizmor.sh/audits/#unpinned-uses
1 parent 44622b6 commit aeb3fef

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/check-style.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ jobs:
1212
env:
1313
FORCE_COLOR: '1'
1414
steps:
15-
- uses: actions/checkout@v6
15+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1616
with:
1717
persist-credentials: false
1818

1919
- name: Install Ruff
2020
id: install-ruff
21-
uses: astral-sh/ruff-action@v3
21+
uses: astral-sh/ruff-action@4919ec5cf1f49eff0871dbcea0da843445b837e6 # v3.6.1
2222
with:
2323
version: '0.15.x'
2424
args: '--version'
@@ -43,11 +43,11 @@ jobs:
4343
name: Pylint
4444
runs-on: ubuntu-latest
4545
steps:
46-
- uses: actions/checkout@v6
46+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4747
with:
4848
persist-credentials: false
4949
- name: Set up Python
50-
uses: actions/setup-python@v6
50+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
5151
with:
5252
python-version: '3.14'
5353
- name: Install dependencies

.github/workflows/release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@ jobs:
1616
permissions:
1717
contents: read
1818
steps:
19-
- uses: actions/checkout@v6
19+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2020
with:
2121
persist-credentials: false
2222
- name: Set up Python
23-
uses: actions/setup-python@v6
23+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
2424
with:
2525
python-version: '3.x'
2626
- name: Install pypa/build
2727
run: python3 -m pip install build --user
2828
- name: Build a binary wheel and a source tarball
2929
run: python3 -m build
3030
- name: Store the package distributions
31-
uses: actions/upload-artifact@v7
31+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
3232
with:
3333
name: python-package-distributions
3434
path: dist/
@@ -45,12 +45,12 @@ jobs:
4545
id-token: write # IMPORTANT: mandatory for trusted publishing
4646
steps:
4747
- name: Download all the dists
48-
uses: actions/download-artifact@v8
48+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
4949
with:
5050
name: python-package-distributions
5151
path: dist/
5252
- name: Publish distribution to TestPyPI
53-
uses: pypa/gh-action-pypi-publish@release/v1
53+
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
5454
with:
5555
repository-url: https://test.pypi.org/legacy/
5656

@@ -68,9 +68,9 @@ jobs:
6868
id-token: write # IMPORTANT: mandatory for trusted publishing
6969
steps:
7070
- name: Download all the dists
71-
uses: actions/download-artifact@v8
71+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
7272
with:
7373
name: python-package-distributions
7474
path: dist/
7575
- name: Publish distribution to PyPI
76-
uses: pypa/gh-action-pypi-publish@release/v1
76+
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0

0 commit comments

Comments
 (0)