Skip to content

Commit b2d0afd

Browse files
authored
Hash pin GitHub Actions (#178)
1 parent da15b12 commit b2d0afd

4 files changed

Lines changed: 14 additions & 20 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ jobs:
2020
runs-on: ubuntu-latest
2121

2222
steps:
23-
- uses: actions/checkout@v6
23+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2424
with:
2525
fetch-depth: 0
2626
persist-credentials: false
2727

28-
- uses: hynek/build-and-inspect-python-package@v2
28+
- uses: hynek/build-and-inspect-python-package@fe0a0fb1925ca263d076ca4f2c13e93a6e92a33e # v2.17.0
2929

3030
# Publish to Test PyPI on every commit on main.
3131
release-test-pypi:
@@ -42,13 +42,13 @@ jobs:
4242

4343
steps:
4444
- name: Download packages built by build-and-inspect-python-package
45-
uses: actions/download-artifact@v8
45+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
4646
with:
4747
name: Packages
4848
path: dist
4949

5050
- name: Publish to Test PyPI
51-
uses: pypa/gh-action-pypi-publish@release/v1
51+
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
5252
with:
5353
repository-url: https://test.pypi.org/legacy/
5454

@@ -67,10 +67,10 @@ jobs:
6767

6868
steps:
6969
- name: Download packages built by build-and-inspect-python-package
70-
uses: actions/download-artifact@v8
70+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
7171
with:
7272
name: Packages
7373
path: dist
7474

7575
- name: Publish to PyPI
76-
uses: pypa/gh-action-pypi-publish@release/v1
76+
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0

.github/workflows/lint.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v6
16+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1717
with:
1818
persist-credentials: false
19-
- uses: actions/setup-python@v6
19+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
2020
with:
2121
python-version: "3.x"
22-
- uses: astral-sh/setup-uv@v7
23-
- uses: j178/prek-action@v1
22+
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
23+
- uses: j178/prek-action@cbc2f23eb5539cf20d82d1aabd0d0ecbcc56f4e3 # v2.0.2
2424
- run: uvx safety check

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,27 @@ jobs:
1717
os: [windows-latest, macos-latest, ubuntu-latest]
1818

1919
steps:
20-
- uses: actions/checkout@v6
20+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2121
with:
2222
# fetch all branches and tags
2323
# ref actions/checkout#448
2424
fetch-depth: 0
2525
persist-credentials: false
2626

2727
- name: Set up Python ${{ matrix.python-version }}
28-
uses: actions/setup-python@v6
28+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
2929
with:
3030
python-version: ${{ matrix.python-version }}
3131
allow-prereleases: true
3232

3333
- name: Install uv
34-
uses: hynek/setup-cached-uv@v2
34+
uses: hynek/setup-cached-uv@4300ec2180bc77d705e626a34e381b81a4772c51 # v2.5.0
3535

3636
- name: Run tests
3737
run: uvx --with tox-uv tox -e py
3838

3939
- name: Upload coverage
40-
uses: codecov/codecov-action@v5
40+
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
4141
with:
4242
flags: ${{ matrix.os }}
4343
name: ${{ matrix.os }} Python ${{ matrix.python-version }}

.github/zizmor.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)