Skip to content

Commit

Permalink
[Internal] Fix workflow permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorcast-db committed Oct 31, 2024
1 parent 2f08742 commit 49e6991
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/external-message.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,15 @@ on:
branches:
- main


pull_request:
types: [opened, reopened, synchronize]

permissions:
contents: read
#Required for commenting on PRs
pull-requests: write
issues: write

jobs:
comment-on-pr:
runs-on: ubuntu-latest
Expand All @@ -23,7 +31,7 @@ jobs:
- name: Check user and potential secret access
id: check-secrets-access
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
USER_LOGIN="${{ github.event.pull_request.user.login }}"
REPO_OWNER="${{ github.repository_owner }}"
Expand Down

0 comments on commit 49e6991

Please sign in to comment.