Skip to content

Commit 5f8f55a

Browse files
committed
Pin github actions versions
Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
1 parent 38bac1a commit 5f8f55a

File tree

2 files changed

+26
-19
lines changed

2 files changed

+26
-19
lines changed

.github/workflows/ci.yaml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,16 @@ on:
55
branches: [ master ]
66
pull_request:
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
flake8_lint:
1013
runs-on: ubuntu-latest
1114
steps:
12-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
1316
- name: Set up Python
14-
uses: actions/setup-python@v5
17+
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
1518
with:
1619
python-version: '3.9'
1720
- name: Install tox
@@ -22,9 +25,9 @@ jobs:
2225
isort_lint:
2326
runs-on: ubuntu-latest
2427
steps:
25-
- uses: actions/checkout@v4
28+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2629
- name: Set up Python
27-
uses: actions/setup-python@v5
30+
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
2831
with:
2932
python-version: '3.9'
3033
- name: Install tox
@@ -35,9 +38,9 @@ jobs:
3538
mypy_lint:
3639
runs-on: ubuntu-latest
3740
steps:
38-
- uses: actions/checkout@v4
41+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
3942
- name: Set up Python
40-
uses: actions/setup-python@v5
43+
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
4144
with:
4245
python-version: '3.9'
4346
- name: Install tox
@@ -51,9 +54,9 @@ jobs:
5154
matrix:
5255
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
5356
steps:
54-
- uses: actions/checkout@v4
57+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
5558
- name: Set up Python ${{ matrix.python-version }}
56-
uses: actions/setup-python@v5
59+
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
5760
with:
5861
python-version: ${{ matrix.python-version }}
5962
- name: Install dependencies
@@ -77,9 +80,9 @@ jobs:
7780
env:
7881
PYTHON_VERSION: '3.9'
7982
steps:
80-
- uses: actions/checkout@v4
83+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
8184
- name: Set up Python
82-
uses: actions/setup-python@v5
85+
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
8386
with:
8487
python-version: ${{ env.PYTHON_VERSION }}
8588
- name: Install tox
@@ -94,9 +97,9 @@ jobs:
9497
env:
9598
PYTHON_VERSION: '3.9'
9699
steps:
97-
- uses: actions/checkout@v4
100+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
98101
- name: Set up PyPy
99-
uses: actions/setup-python@v5
102+
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
100103
with:
101104
python-version: pypy-${{ env.PYTHON_VERSION }}
102105
- name: Install tox

.github/workflows/github-pages.yaml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ on:
1111
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1212
permissions:
1313
contents: read
14-
pages: write
15-
id-token: write
16-
actions: read
1714

1815
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
1916
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
@@ -32,6 +29,9 @@ jobs:
3229
runs-on: ubuntu-latest
3330
env:
3431
HUGO_VERSION: 0.145.0
32+
permissions:
33+
pages: write
34+
id-token: write
3535
steps:
3636
- name: Install Hugo CLI
3737
run: |
@@ -40,13 +40,13 @@ jobs:
4040
#- name: Install Dart Sass
4141
# run: sudo snap install dart-sass
4242
- name: Checkout
43-
uses: actions/checkout@v4
43+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
4444
with:
4545
submodules: recursive
4646
fetch-depth: 0
4747
- name: Setup Pages
4848
id: pages
49-
uses: actions/configure-pages@v5
49+
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
5050
- name: Install Node.js dependencies
5151
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
5252
working-directory: ./docs
@@ -62,7 +62,7 @@ jobs:
6262
--baseURL "${{ steps.pages.outputs.base_url }}/"
6363
working-directory: ./docs
6464
- name: Upload artifact
65-
uses: actions/upload-pages-artifact@v3
65+
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
6666
with:
6767
path: ./docs/public
6868

@@ -73,7 +73,11 @@ jobs:
7373
url: ${{ steps.deployment.outputs.page_url }}
7474
runs-on: ubuntu-latest
7575
needs: build
76+
permissions:
77+
pages: write
78+
id-token: write
79+
actions: read
7680
steps:
7781
- name: Deploy to GitHub Pages
7882
id: deployment
79-
uses: actions/deploy-pages@v4
83+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5

0 commit comments

Comments
 (0)