Skip to content

Commit f7f8257

Browse files
authored
Use SHAs to pin actions (#326)
1 parent 3b31915 commit f7f8257

3 files changed

Lines changed: 15 additions & 15 deletions

File tree

.github/workflows/docs.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ jobs:
1818
name: Build & Upload Artifact
1919
runs-on: ubuntu-latest
2020
steps:
21-
- uses: actions/checkout@v6
21+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2222
with:
2323
persist-credentials: false
2424

25-
- uses: actions/setup-python@v6
25+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
2626
with:
2727
python-version: "3.13"
2828

@@ -41,7 +41,7 @@ jobs:
4141
working-directory: ./docs
4242

4343
- name: Upload artifact
44-
uses: actions/upload-artifact@v6
44+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
4545
with:
4646
name: docs
4747
path: docs/_build
@@ -52,15 +52,15 @@ jobs:
5252
needs: build-docs
5353
if: contains(github.ref, 'tags')
5454
steps:
55-
- uses: actions/checkout@v6
55+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
5656
with:
5757
persist-credentials: false
58-
- uses: actions/download-artifact@v7.0.0
58+
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
5959
with:
6060
name: docs
6161

6262
- name: Push to GitHub pages
63-
uses: JamesIves/github-pages-deploy-action@9d877eea73427180ae43cf98e8914934fe157a1a # v4
63+
uses: JamesIves/github-pages-deploy-action@d92aa235d04922e8f08b40ce78cc5442fcfbfa2f # v4.8.0
6464
with:
6565
folder: html
6666
ssh-key: ${{ secrets.DEPLOY_KEY }}

.github/workflows/publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ jobs:
88
runs-on: ubuntu-latest
99

1010
steps:
11-
- uses: actions/checkout@v6
11+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
1212
with:
1313
persist-credentials: false
1414

1515
- name: Set up Python
16-
uses: actions/setup-python@v6
16+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
1717
with:
1818
python-version: "3.x"
1919

@@ -28,7 +28,7 @@ jobs:
2828
run: python3 -m build
2929

3030
- name: Store the distribution packages
31-
uses: actions/upload-artifact@v5
31+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
3232
with:
3333
name: python-package-distributions
3434
path: dist/
@@ -48,7 +48,7 @@ jobs:
4848

4949
steps:
5050
- name: Download all the dists
51-
uses: actions/download-artifact@v6
51+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
5252
with:
5353
name: python-package-distributions
5454
path: dist/

.github/workflows/test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ jobs:
2323
name: precommit
2424
runs-on: ubuntu-latest
2525
steps:
26-
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
26+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2727
with:
2828
fetch-depth: 0
29-
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
29+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
3030
with:
3131
python-version: "3.x"
3232
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
@@ -42,12 +42,12 @@ jobs:
4242
python-version: ["3.11", "3.12", "3.13"]
4343

4444
steps:
45-
- uses: actions/checkout@v6
45+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
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@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
5151
with:
5252
python-version: ${{ matrix.python-version }}
5353

@@ -71,7 +71,7 @@ jobs:
7171
run: python -m tox
7272

7373
- name: Upload pytest test results
74-
uses: actions/upload-artifact@v6
74+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
7575
with:
7676
name: pytest-results-${{ matrix.platform }} py${{ matrix.python-version }}
7777
path: reports/

0 commit comments

Comments
 (0)