Skip to content

Commit 49e6991

Browse files
committed
[Internal] Fix workflow permissions
1 parent 2f08742 commit 49e6991

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/external-message.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,15 @@ on:
1111
branches:
1212
- main
1313

14-
14+
pull_request:
15+
types: [opened, reopened, synchronize]
16+
17+
permissions:
18+
contents: read
19+
#Required for commenting on PRs
20+
pull-requests: write
21+
issues: write
22+
1523
jobs:
1624
comment-on-pr:
1725
runs-on: ubuntu-latest
@@ -23,7 +31,7 @@ jobs:
2331
- name: Check user and potential secret access
2432
id: check-secrets-access
2533
env:
26-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2735
run: |
2836
USER_LOGIN="${{ github.event.pull_request.user.login }}"
2937
REPO_OWNER="${{ github.repository_owner }}"

0 commit comments

Comments
 (0)