Skip to content

Agent Mesh

fix zizmor permissions for github pages

Antonio Ojea1dab5efb09f0
diff --git a/.github/workflows/deploy-github-pages.yml b/.github/workflows/deploy-github-pages.yml
index 6c0fbcef..87bff503 100644
--- a/.github/workflows/deploy-github-pages.yml
+++ b/.github/workflows/deploy-github-pages.yml
@@ -17,8 +17,6 @@ on:
permissions:
contents: read
- pages: write
- id-token: write
env:
REPO_NAME: ${{ github.event.repository.name }}
@@ -66,6 +64,10 @@ jobs:
deploy:
needs: build
if: ${{ github.ref == 'refs/heads/main' && github.event_name != 'pull_request' }}
+ permissions:
+ contents: read
+ pages: write
+ id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}