Skip to content

Commit 43b854b

Browse files
committed
add read permission; edit message
1 parent 304e322 commit 43b854b

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/scripts/check-deploy-permissions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ async function skipDeployment(coreApi: AsyncFunctionArguments['core'], reason: s
8989
'Security Notice',
9090
`Deployments are restricted to organization members, collaborators, and repository owners.
9191
External contributors can still run builds and tests.
92-
Maintainers can trigger deployments by commenting "ok-to-deploy" on the pull request.`
92+
Maintainers can trigger deployments by adding a regular PR comment with "ok-to-deploy" exactly.`
9393
)
9494
.write();
9595
}

.github/workflows/deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ defaults:
1515

1616
permissions:
1717
pull-requests: write
18+
issues: read
19+
contents: read
1820

1921
jobs:
2022
check-permissions:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ pnpm -C localenv/s3 dev
115115

116116
### How to Run Preview Changes
117117

118-
For a pull request, **external contributors** (those without write access to the repository), deployment previews are not automatically. However, user with write access to repository can trigger the workflow **preview deployments** by adding a review-comment with body `ok-to-deploy` exactly.
118+
For a pull request, **external contributors** (those without write access to the repository), deployment previews are not triggered automatically. However, users with write access to the repository can trigger **preview deployments** by adding a regular PR comment with `ok-to-deploy` exactly.
119119
This will trigger the deploy workflow and create preview environments for the PR.
120120

121121
## Technology Stack

0 commit comments

Comments
 (0)