Просмотр исходного кода

Fix GitHub Pages deployment permissions

Add required permissions to deploy job for OIDC authentication. The
actions/deploy-pages@v4 action needs pages:write and id-token:write
permissions to successfully deploy to GitHub Pages.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Thi Bot 6 дней назад
Родитель
Сommit
81a7563894
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      .github/workflows/main.yml

+ 3 - 0
.github/workflows/main.yml

@@ -28,6 +28,9 @@ jobs:
     if: github.event_name == 'push' && github.ref == 'refs/heads/master'
     if: github.event_name == 'push' && github.ref == 'refs/heads/master'
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
     needs: build
     needs: build
+    permissions:
+      pages: write
+      id-token: write
     environment:
     environment:
       name: github-pages
       name: github-pages
       url: ${{ steps.deployment.outputs.page_url }}
       url: ${{ steps.deployment.outputs.page_url }}