Skip to content

Commit

Permalink
ci: Use pull_request_target in update label workflow
Browse files Browse the repository at this point in the history
When the workflow is triggered from a PR opened in a fork, it fails with
the following message:

`GraphQL: Resource not accessible by integration (removeLabelsFromLabelable)`

To fix this, we need to run the workflow in the context of the pull
request base, so the commit changes the event to be
`pull_request_target` instead of `pull_request`.

Signed-off-by: Fabio Falzoi <fabio.falzoi@isovalent.com>
  • Loading branch information
pippolo84 authored and aanm committed Nov 7, 2023
1 parent 417de59 commit a0ef41a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/call-backport-label-updater.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: Call Backport Label Updater
on:
pull_request:
pull_request_target:
types:
- closed
branches:
Expand Down

0 comments on commit a0ef41a

Please sign in to comment.