Commit dad27f1
committed
fix(ci): skip autolabeler in PR from forks
Following the reconmendation from the SUSE security team, the
`pull_request_target` triggers from all our CI files have been removed.
However, this trigger is required to allow the autolabeler action
tagging PRs from forks. It's not possible to use `pull_request` only
because Github by default set all the permissions to read-only for this
trigger. Ignoring what it is defined in the CI file.
Because of that, this commit updates the autolabeler CI workflow to skip
the tagging when the PR came from a fork.
Signed-off-by: José Guilherme Vanz <jguilhermevanz@suse.com>1 parent 5e3e32a commit dad27f1
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | | - | |
12 | 15 | | |
13 | 16 | | |
14 | 17 | | |
| |||
0 commit comments