Skip to content

Commit cf8670d

Browse files
committed
Add GitHub Deployments permissions to workflow
Adds required permissions for Cloudflare Pages action to create GitHub Deployment records: - contents: read - Read repository code - deployments: write - Create deployment tracking records - pull-requests: write - Comment on PRs with deployment status Fixes: Resource not accessible by integration error
1 parent 2950e1f commit cf8670d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ concurrency:
2424
group: ${{ github.workflow }}-${{ github.ref }}
2525
cancel-in-progress: true
2626

27+
# Required permissions for GitHub Deployments and Cloudflare Pages
28+
permissions:
29+
contents: read
30+
deployments: write
31+
pull-requests: write
32+
2733
jobs:
2834
# Build unified documentation (runs for all triggers)
2935
build:

0 commit comments

Comments
 (0)