Skip to content

Commit

Permalink
github-actions: pull_request in forked PRs cannot change permissions …
Browse files Browse the repository at this point in the history
…scope (elastic#196550)

(cherry picked from commit 4b09db3)
  • Loading branch information
v1v committed Oct 17, 2024
1 parent a0b7048 commit 607055b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/oblt-github-commands.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,20 @@
name: oblt-github-commands

on:
pull_request:
pull_request_target:
types:
- labeled

permissions:
contents: read
issues: write
pull-requests: write

jobs:
comment:
if: ${{ github.event.label.name == 'ci:project-deploy-observability' }}
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
Expand Down

0 comments on commit 607055b

Please sign in to comment.