Skip to content

Commit e289024

Browse files
ci: sha-pin all actions
1 parent 627520a commit e289024

4 files changed

Lines changed: 34 additions & 34 deletions

File tree

.github/workflows/build.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
FREEBSD_ID: freebsd16
2828

2929
steps:
30-
- uses: actions/checkout@v6
30+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3131
- name: Setup FreeBSD build VM
3232
run: |
3333
/usr/local/bin/VBoxManage controlvm ${{ matrix.FREEBSD_VERSION }} poweroff || true
@@ -46,7 +46,7 @@ jobs:
4646
/usr/local/bin/VBoxManage controlvm ${{ matrix.FREEBSD_VERSION }} poweroff || true
4747
/usr/local/bin/VBoxManage snapshot ${{matrix.FREEBSD_VERSION}} restore initial
4848
49-
- uses: actions/upload-artifact@v7
49+
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
5050
with:
5151
name: pfSense-pkg-RESTAPI-${{ env.BUILD_VERSION }}-${{ matrix.FREEBSD_ID }}.pkg
5252
path: pfSense-pkg-RESTAPI-${{ env.BUILD_VERSION }}-${{ matrix.FREEBSD_ID }}.pkg
@@ -62,8 +62,8 @@ jobs:
6262
- PFSENSE_VERSION: pfSense-2.8.1-RELEASE
6363
FREEBSD_ID: freebsd15
6464
steps:
65-
- uses: actions/checkout@v6
66-
- uses: actions/download-artifact@v8
65+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
66+
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
6767
with:
6868
name: pfSense-pkg-RESTAPI-${{ env.BUILD_VERSION }}-${{ matrix.FREEBSD_ID }}.pkg
6969
path: pfSense-pkg-RESTAPI-${{ env.BUILD_VERSION }}-${{ matrix.FREEBSD_ID }}.pkg
@@ -96,7 +96,7 @@ jobs:
9696
/usr/local/bin/VBoxManage controlvm ${{ matrix.PFSENSE_VERSION }} poweroff || true
9797
/usr/local/bin/VBoxManage snapshot ${{ matrix.PFSENSE_VERSION }} restore initial
9898
99-
- uses: actions/upload-artifact@v7
99+
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
100100
with:
101101
name: openapi-${{ matrix.PFSENSE_VERSION }}.json
102102
path: openapi-${{ matrix.PFSENSE_VERSION }}.json
@@ -112,14 +112,14 @@ jobs:
112112
- PFSENSE_VERSION: pfSense-2.8.1-RELEASE
113113
FREEBSD_ID: freebsd15
114114
steps:
115-
- uses: actions/checkout@v6
116-
- uses: actions/download-artifact@v8
115+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
116+
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
117117
with:
118118
name: openapi-${{ matrix.PFSENSE_VERSION }}.json
119119
path: openapi-${{ matrix.PFSENSE_VERSION }}.json
120120

121121
- name: Install Node.js
122-
uses: actions/setup-node@v6
122+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
123123
with:
124124
node-version: "20"
125125

@@ -142,9 +142,9 @@ jobs:
142142
FREEBSD_ID: freebsd15
143143

144144
steps:
145-
- uses: actions/checkout@v6
145+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
146146

147-
- uses: actions/download-artifact@v8
147+
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
148148
with:
149149
name: pfSense-pkg-RESTAPI-${{ env.BUILD_VERSION }}-${{ matrix.FREEBSD_ID }}.pkg
150150
path: pfSense-pkg-RESTAPI-${{ env.BUILD_VERSION }}-${{ matrix.FREEBSD_ID }}.pkg

.github/workflows/quality.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ jobs:
55
check_prettier:
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v6
9-
- uses: actions/setup-node@v6
8+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
9+
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
1010
with:
1111
node-version: 20
1212
- name: Install npm packages
@@ -17,8 +17,8 @@ jobs:
1717
check_black:
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@v6
21-
- uses: psf/black@stable
20+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
21+
- uses: psf/black@c6755bb741b6481d6b3d3bb563c83fa060db96c9 # 26.3.1
2222

2323
lint_php:
2424
runs-on: ubuntu-latest
@@ -27,9 +27,9 @@ jobs:
2727
matrix:
2828
PHP_VERSION: ["8.2"]
2929
steps:
30-
- uses: actions/checkout@v6
30+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3131
- name: "Setup PHP ${{ matrix.PHP_VERSION }}"
32-
uses: shivammathur/setup-php@v2
32+
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # 2.37.0
3333
with:
3434
php-version: "${{ matrix.PHP_VERSION }}"
3535
coverage: "none"
@@ -46,9 +46,9 @@ jobs:
4646
matrix:
4747
PYTHON_VERSION: ["3.10", "3.11"]
4848
steps:
49-
- uses: actions/checkout@v6
49+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5050
- name: Set up Python ${{ matrix.PYTHON_VERSION }}
51-
uses: actions/setup-python@v6
51+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
5252
with:
5353
python-version: ${{ matrix.PYTHON_VERSION }}
5454
- name: Install dependencies
@@ -62,7 +62,7 @@ jobs:
6262
runs-on: ubuntu-latest
6363
needs: ["lint_php"]
6464
steps:
65-
- uses: actions/checkout@v6
65+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6666
- name: Check phpdoc build
6767
run: |
6868
wget https://phpdoc.org/phpDocumentor.phar -O phpdoc

.github/workflows/release.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
PFSENSE_VERSION: "26.03"
4545

4646
steps:
47-
- uses: actions/checkout@v6
47+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4848

4949
- name: Setup FreeBSD build VM
5050
run: |
@@ -64,23 +64,23 @@ jobs:
6464
/usr/local/bin/VBoxManage controlvm ${{ matrix.FREEBSD_VERSION }} poweroff || true
6565
/usr/local/bin/VBoxManage snapshot ${{matrix.FREEBSD_VERSION}} restore initial
6666
67-
- uses: actions/upload-artifact@v7
67+
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
6868
with:
6969
name: pfSense-${{ matrix.PFSENSE_VERSION }}-pkg-RESTAPI.pkg
7070
path: pfSense-${{ matrix.PFSENSE_VERSION }}-pkg-RESTAPI.pkg
7171

7272
- name: Release
73-
uses: softprops/action-gh-release@v2
73+
uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2.6.1
7474
with:
7575
files: pfSense-${{ matrix.PFSENSE_VERSION }}-pkg-RESTAPI.pkg
7676

7777
build_schemas:
7878
runs-on: self-hosted
7979
needs: [release_pkg]
8080
steps:
81-
- uses: actions/checkout@v6
81+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
8282

83-
- uses: actions/download-artifact@v8
83+
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
8484
with:
8585
name: pfSense-${{ env.DEFAULT_PFSENSE_VERSION }}-pkg-RESTAPI.pkg
8686
path: pfSense-${{ env.DEFAULT_PFSENSE_VERSION }}-pkg-RESTAPI.pkg
@@ -116,13 +116,13 @@ jobs:
116116
/usr/local/bin/VBoxManage snapshot pfSense-${{ env.DEFAULT_PFSENSE_VERSION }}-RELEASE restore initial
117117
118118
- name: Upload OpenAPI schema
119-
uses: actions/upload-artifact@v7
119+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
120120
with:
121121
name: openapi.json
122122
path: openapi.json
123123

124124
- name: Upload GraphQL schema
125-
uses: actions/upload-artifact@v7
125+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
126126
with:
127127
name: schema.graphql
128128
path: schema.graphql
@@ -135,16 +135,16 @@ jobs:
135135
name: github-pages
136136
url: ${{ steps.deployment.outputs.page_url }}
137137
steps:
138-
- uses: actions/checkout@v6
138+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
139139

140140
- name: Setup Pages
141-
uses: actions/configure-pages@v5.0.0
141+
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
142142

143143
- name: Make website directory
144144
run: mkdir ./www
145145

146146
- name: Setup python
147-
uses: actions/setup-python@v6
147+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
148148
with:
149149
python-version: ${{ env.PYTHON_VERSION }}
150150

@@ -155,13 +155,13 @@ jobs:
155155
mv ./site/* ./www/
156156
157157
- name: Download OpenAPI schema
158-
uses: actions/download-artifact@v8
158+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
159159
with:
160160
name: openapi.json
161161
path: openapi.json
162162

163163
- name: Download GraphQL schema
164-
uses: actions/download-artifact@v8
164+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
165165
with:
166166
name: schema.graphql
167167
path: schema.graphql
@@ -207,10 +207,10 @@ jobs:
207207
mv ./.phpdoc/build/* ./www/php-docs/
208208
209209
- name: Upload artifact
210-
uses: actions/upload-pages-artifact@v4.0.0
210+
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
211211
with:
212212
path: "./www"
213213

214214
- name: Deploy to GitHub Pages
215215
id: deployment
216-
uses: actions/deploy-pages@v4.0.5
216+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5

.github/workflows/schedule_weekly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
env:
1616
DAYS_BEFORE_STALE: 60
1717
steps:
18-
- uses: actions/stale@v10
18+
- uses: actions/stale@b5d41d4e1d5dceea10e7104786b73624c18a190f # v10.2.0
1919
with:
2020
stale-issue-message: |
2121
This issue has been automatically marked as stale because it has had no recent activity in the last ${{ env.DAYS_BEFORE_STALE }} days.

0 commit comments

Comments
 (0)