Skip to content

Commit a54ad52

Browse files
committed
Pin action to SHAs and add a defensive persist-credentials in workflows
1 parent 9e51e95 commit a54ad52

3 files changed

Lines changed: 11 additions & 10 deletions

File tree

‎.github/workflows/lint.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ jobs:
1818
runs-on: ubuntu-latest
1919

2020
steps:
21-
- uses: actions/checkout@v7
21+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
2222
with:
2323
persist-credentials: false
2424

2525
- name: Run pre-commit hooks
26-
uses: j178/prek-action@v2.0.4
26+
uses: j178/prek-action@e98a699c41eb69ab013a45817a0406469a748f8d # v2.0.5
2727

2828
- name: Check spelling
29-
uses: j178/prek-action@v2.0.4
29+
uses: j178/prek-action@e98a699c41eb69ab013a45817a0406469a748f8d #v2.0.5
3030
continue-on-error: true
3131
with:
3232
extra_args: --all-files --hook-stage manual codespell

‎.github/workflows/render.yml‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,13 @@ jobs:
2727

2828
steps:
2929
- name: Checkout
30-
uses: actions/checkout@v7
30+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 #v7.0.0
3131
with:
3232
fetch-depth: 0 # fetch all history so that last modified date-times are accurate
33+
persist-credentials: false
3334

3435
- name: Set up Python ${{ matrix.python-version }}
35-
uses: actions/setup-python@v6
36+
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
3637
with:
3738
python-version: ${{ matrix.python-version }}
3839
cache: pip
@@ -51,7 +52,7 @@ jobs:
5152
- name: Deploy to GitHub pages
5253
# This allows CI to build branches for testing
5354
if: (github.ref == 'refs/heads/main') && (matrix.python-version == '3.x')
54-
uses: JamesIves/github-pages-deploy-action@v4
55+
uses: JamesIves/github-pages-deploy-action@d92aa235d04922e8f08b40ce78cc5442fcfbfa2f #v4.8.0
5556
with:
5657
folder: build # Synchronise with Makefile -> BUILDDIR
5758
single-commit: true # Delete existing files

‎.github/workflows/test.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,18 @@ jobs:
4242
- "ubuntu-latest"
4343

4444
steps:
45-
- uses: actions/checkout@v7
45+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
4646
with:
4747
persist-credentials: false
4848

4949
- name: Set up Python ${{ matrix.python-version }}
50-
uses: actions/setup-python@v6
50+
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
5151
with:
5252
python-version: ${{ matrix.python-version }}
5353
allow-prereleases: true
5454

5555
- name: Install uv
56-
uses: hynek/setup-cached-uv@v2
56+
uses: hynek/setup-cached-uv@4300ec2180bc77d705e626a34e381b81a4772c51 # v2.5.0
5757
with:
5858
cache-dependency-path: |
5959
requirements.txt
@@ -63,7 +63,7 @@ jobs:
6363
uvx --with tox-uv tox -e py -- -v --cov-report term
6464
6565
- name: Upload coverage
66-
uses: codecov/codecov-action@v7
66+
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
6767
with:
6868
flags: ${{ matrix.os }}
6969
name: ${{ matrix.os }} Python ${{ matrix.python-version }}

0 commit comments

Comments
 (0)