-
Notifications
You must be signed in to change notification settings - Fork 7
Ci documentation deployment #36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -242,6 +242,7 @@ jobs: | |
| contents: read | ||
| pages: write | ||
| id-token: write | ||
| actions: write | ||
| environment: | ||
| name: github-pages | ||
| url: ${{ steps.deployment.outputs.page_url }} | ||
|
|
@@ -265,6 +266,8 @@ jobs: | |
|
|
||
| - name: Setup Pages | ||
| uses: actions/configure-pages@v5 | ||
| with: | ||
| enablement: true | ||
|
Comment on lines
+269
to
+270
|
||
|
|
||
| - name: Upload artifact | ||
| uses: actions/upload-pages-artifact@v4 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
actions: writepermission is broader than necessary for GitHub Pages deployment. This permission allows the workflow to modify workflow files and other actions in the repository.If the
enablement: trueparameter (line 270) is intended to automatically enable GitHub Pages, this permission is required. However, if GitHub Pages is already manually enabled in the repository settings, you can remove both theactions: writepermission and theenablement: trueparameter to follow the principle of least privilege.Consider manually enabling GitHub Pages in the repository settings (Settings → Pages → Source: GitHub Actions) and removing these additions to minimize security risk.