We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
notify-team-to-review-pr.yml
pull_request_target
1 parent a9606b3 commit 8b04aa2Copy full SHA for 8b04aa2
.github/workflows/notify-team-to-review-pr.yml
@@ -1,7 +1,9 @@
1
---
2
name: Add Review Requested Label
3
on: # yamllint disable-line rule:truthy
4
- pull_request:
+ # the regular `secrets.GITHUB_TOKEN` with `on: pull_request` results in a 403 error
5
+ # HttpError: Resource not accessible by integration
6
+ pull_request_target:
7
types: [opened]
8
9
permissions:
@@ -14,9 +16,13 @@ jobs:
14
16
if: contains(github.event.pull_request.labels.*.name, 'konflux-nudge') == false
15
17
runs-on: ubuntu-latest
18
steps:
19
+
20
+ # SECURITY: never clone untrusted code in pull_request_target workflows
21
22
- name: Add review-requested label
23
uses: actions/github-script@v7
24
with:
25
+ github-token: ${{ secrets.GITHUB_TOKEN }}
26
# language=javascript
27
script: |
28
await github.rest.issues.addLabels({
0 commit comments