mirror of
https://github.com/actions/deploy-pages.git
synced 2026-02-09 03:45:15 +00:00
clarify actions permission
This commit is contained in:
@@ -30,6 +30,7 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
pages: write # to deploy to Pages
|
pages: write # to deploy to Pages
|
||||||
id-token: write # to verify the deployment originates from an appropriate source
|
id-token: write # to verify the deployment originates from an appropriate source
|
||||||
|
actions: read # to download an artifact uploaded by `actions/upload-pages-artifact@v3`
|
||||||
|
|
||||||
# Deploy to the github-pages environment
|
# Deploy to the github-pages environment
|
||||||
environment:
|
environment:
|
||||||
@@ -76,7 +77,7 @@ There are a few important considerations to be aware of:
|
|||||||
2. The job that executes the deployment must at minimum have the following permissions:
|
2. The job that executes the deployment must at minimum have the following permissions:
|
||||||
- `pages: write`
|
- `pages: write`
|
||||||
- `id-token: write`
|
- `id-token: write`
|
||||||
- `actions: write`
|
- `actions: read`
|
||||||
|
|
||||||
3. The deployment should target the `github-pages` environment (you may use a different environment name if needed, but this is not recommended.)
|
3. The deployment should target the `github-pages` environment (you may use a different environment name if needed, but this is not recommended.)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user