Skip to content

Commit cc33e1e

Browse files
committed
Address zizmor findings
* Explicitly do not persist credentials in checkout * Pin all actions references by commit hash * **Note:** Includes update to latest major when there are no relevant breaking changes * Add version comments where actions were already referenced by commit hash Signed-off-by: Ben Cotton <ben@kusari.dev>
1 parent 319fbad commit cc33e1e

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/deploy-pages.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,19 @@ jobs:
2323

2424
steps:
2525
- name: Check out repository
26-
uses: actions/checkout@v6
26+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
27+
with:
28+
persist-credentials: false
2729

2830
- name: Setup Hugo
29-
uses: peaceiris/actions-hugo@2752ce1d29631191ea3f27c23495fa06139a5b78
31+
uses: peaceiris/actions-hugo@2752ce1d29631191ea3f27c23495fa06139a5b78 # v3.2.1
3032

3133
- name: Build
3234
run: hugo --minify
3335

3436
- name: Upload Pages artifact
3537
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
36-
uses: actions/upload-pages-artifact@v3
38+
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
3739
with:
3840
path: public/
3941

@@ -54,4 +56,4 @@ jobs:
5456
steps:
5557
- name: Deploy to GitHub Pages
5658
id: deployment
57-
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128
59+
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0

0 commit comments

Comments
 (0)