Skip to content

Commit d28809e

Browse files
committed
workflows: perform audit with zizmor
Zizmor[0] is a static analysis tool for GitHub actions. Perform a quick security audit with it and fix the issues it found, not including unpinned commit uses. https://woodruffw.github.io/zizmor/ Signed-off-by: Luca Zeuch <[email protected]>
1 parent c8a8a29 commit d28809e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/hugo.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ on:
99

1010
permissions:
1111
contents: read
12-
pages: write
13-
id-token: write
1412

1513
concurrency:
1614
group: 'pages'
@@ -26,6 +24,8 @@ jobs:
2624
steps:
2725
- name: Checkout repository
2826
uses: actions/checkout@v4
27+
with:
28+
persist-credentials: false
2929

3030
- name: Install Hugo
3131
uses: peaceiris/actions-hugo@v3
@@ -69,6 +69,9 @@ jobs:
6969
name: github-pages
7070
url: ${{ steps.deployment.outputs.page_url }}
7171
runs-on: ubuntu-latest
72+
permissions:
73+
pages: write
74+
7275
steps:
7376
- name: Deploy to GitHub Pages
7477
id: deployment

0 commit comments

Comments
 (0)