Skip to content

Commit

Permalink
workflows: perform audit with zizmor
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
l-zeuch committed Dec 16, 2024
1 parent c8a8a29 commit d28809e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ on:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: 'pages'
Expand All @@ -26,6 +24,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install Hugo
uses: peaceiris/actions-hugo@v3
Expand Down Expand Up @@ -69,6 +69,9 @@ jobs:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
permissions:
pages: write

steps:
- name: Deploy to GitHub Pages
id: deployment
Expand Down

0 comments on commit d28809e

Please sign in to comment.