Skip to content

Commit 0b0a5f9

Browse files
Merge branch 'master' of github.com:jaredhendrickson13/pfsense-api into next_minor
2 parents 19c0f64 + d1caec2 commit 0b0a5f9

15 files changed

Lines changed: 238 additions & 118 deletions

.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: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@ jobs:
4040
PFSENSE_VERSION: "25.11"
4141
- FREEBSD_VERSION: FreeBSD-16.0-CURRENT
4242
PFSENSE_VERSION: "25.11.1"
43+
- FREEBSD_VERSION: FreeBSD-16.0-CURRENT
44+
PFSENSE_VERSION: "26.03"
4345

4446
steps:
45-
- uses: actions/checkout@v6
47+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4648

4749
- name: Setup FreeBSD build VM
4850
run: |
@@ -62,23 +64,23 @@ jobs:
6264
/usr/local/bin/VBoxManage controlvm ${{ matrix.FREEBSD_VERSION }} poweroff || true
6365
/usr/local/bin/VBoxManage snapshot ${{matrix.FREEBSD_VERSION}} restore initial
6466
65-
- uses: actions/upload-artifact@v7
67+
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
6668
with:
6769
name: pfSense-${{ matrix.PFSENSE_VERSION }}-pkg-RESTAPI.pkg
6870
path: pfSense-${{ matrix.PFSENSE_VERSION }}-pkg-RESTAPI.pkg
6971

7072
- name: Release
71-
uses: softprops/action-gh-release@v2
73+
uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2.6.1
7274
with:
7375
files: pfSense-${{ matrix.PFSENSE_VERSION }}-pkg-RESTAPI.pkg
7476

7577
build_schemas:
7678
runs-on: self-hosted
7779
needs: [release_pkg]
7880
steps:
79-
- uses: actions/checkout@v6
81+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
8082

81-
- uses: actions/download-artifact@v8
83+
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
8284
with:
8385
name: pfSense-${{ env.DEFAULT_PFSENSE_VERSION }}-pkg-RESTAPI.pkg
8486
path: pfSense-${{ env.DEFAULT_PFSENSE_VERSION }}-pkg-RESTAPI.pkg
@@ -114,13 +116,13 @@ jobs:
114116
/usr/local/bin/VBoxManage snapshot pfSense-${{ env.DEFAULT_PFSENSE_VERSION }}-RELEASE restore initial
115117
116118
- name: Upload OpenAPI schema
117-
uses: actions/upload-artifact@v7
119+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
118120
with:
119121
name: openapi.json
120122
path: openapi.json
121123

122124
- name: Upload GraphQL schema
123-
uses: actions/upload-artifact@v7
125+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
124126
with:
125127
name: schema.graphql
126128
path: schema.graphql
@@ -133,16 +135,16 @@ jobs:
133135
name: github-pages
134136
url: ${{ steps.deployment.outputs.page_url }}
135137
steps:
136-
- uses: actions/checkout@v6
138+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
137139

138140
- name: Setup Pages
139-
uses: actions/configure-pages@v5.0.0
141+
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
140142

141143
- name: Make website directory
142144
run: mkdir ./www
143145

144146
- name: Setup python
145-
uses: actions/setup-python@v6
147+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
146148
with:
147149
python-version: ${{ env.PYTHON_VERSION }}
148150

@@ -153,13 +155,13 @@ jobs:
153155
mv ./site/* ./www/
154156
155157
- name: Download OpenAPI schema
156-
uses: actions/download-artifact@v8
158+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
157159
with:
158160
name: openapi.json
159161
path: openapi.json
160162

161163
- name: Download GraphQL schema
162-
uses: actions/download-artifact@v8
164+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
163165
with:
164166
name: schema.graphql
165167
path: schema.graphql
@@ -205,10 +207,10 @@ jobs:
205207
mv ./.phpdoc/build/* ./www/php-docs/
206208
207209
- name: Upload artifact
208-
uses: actions/upload-pages-artifact@v4.0.0
210+
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
209211
with:
210212
path: "./www"
211213

212214
- name: Deploy to GitHub Pages
213215
id: deployment
214-
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.

composer.lock

Lines changed: 23 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/INSTALL_AND_CONFIG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ run pfSense. It's recommended to follow Netgate's [minimum hardware requirements
2121
- pfSense Plus 25.07.1
2222
- pfSense Plus 25.11
2323
- pfSense Plus 25.11.1
24+
- pfSense Plus 26.03
2425

2526
!!! Warning
2627
Installation of the package on unsupported versions of pfSense may result in unexpected behavior and/or system instability.

0 commit comments

Comments
 (0)