Skip to content

Commit e844455

Browse files
committed
ci: pin GitHub Actions to SHA digests
1 parent 66e43a8 commit e844455

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ jobs:
1616
name: Lint
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v6
19+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2020
- name: Install uv
21-
uses: astral-sh/setup-uv@v5
21+
uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5
2222
- name: Install prek
2323
run: uv tool install prek
2424
- name: Run prek

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ jobs:
1010
fail-fast: false
1111

1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
1414
with:
1515
submodules: true
1616
fetch-depth: 0
1717

18-
- uses: actions/setup-python@v5.2.0
18+
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
1919
name: Install Python
2020
with:
2121
python-version: "3.11"
@@ -26,7 +26,7 @@ jobs:
2626
pip install hatch
2727
- name: Build wheel and sdist
2828
run: hatch build
29-
- uses: actions/upload-artifact@v4
29+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
3030
with:
3131
name: releases
3232
path: dist
@@ -35,7 +35,7 @@ jobs:
3535
needs: [build_artifacts]
3636
runs-on: ubuntu-latest
3737
steps:
38-
- uses: actions/download-artifact@v4
38+
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
3939
with:
4040
name: releases
4141
path: dist
@@ -54,9 +54,9 @@ jobs:
5454
id-token: write
5555
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
5656
steps:
57-
- uses: actions/download-artifact@v4
57+
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
5858
with:
5959
name: releases
6060
path: dist
6161
- name: Publish package distributions to PyPI
62-
uses: pypa/gh-action-pypi-publish@v1.12.4
62+
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,21 @@ jobs:
2525
runs-on: ${{ matrix.os }}
2626

2727
steps:
28-
- uses: actions/checkout@v4
28+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
2929
with:
3030
fetch-depth: 0 # grab all branches and tags
3131
- name: Install uv
32-
uses: astral-sh/setup-uv@v7
32+
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
3333
with:
3434
enable-cache: true
3535
- name: Set up Python
36-
uses: actions/setup-python@v5
36+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
3737
with:
3838
python-version: ${{ matrix.python-version }}
3939
- name: Run Tests
4040
run: |
4141
uv run --all-groups pytest --cov-config=pyproject.toml --cov=pkg --cov-report xml --cov=src
4242
- name: Upload coverage
43-
uses: codecov/codecov-action@v5
43+
uses: codecov/codecov-action@75cd11691c0faa626561e295848008c8a7dddffe # v5
4444
with:
4545
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)