github-actions: pull_request in forked PRs cannot change permissions scope (#196550)

This commit is contained in:
Victor Martinez 2024-10-17 03:33:19 +02:00 committed by GitHub
parent ef98f9e8e7
commit 4b09db32f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: