Skip to content

fix(ci): skip autolabeler in PR from forks#81

Merged
viccuad merged 1 commit intokubewarden:mainfrom
jvanz:fix-autolabeler-skip-fork-prs
Mar 27, 2026
Merged

fix(ci): skip autolabeler in PR from forks#81
viccuad merged 1 commit intokubewarden:mainfrom
jvanz:fix-autolabeler-skip-fork-prs

Conversation

@jvanz
Copy link
Copy Markdown
Member

@jvanz jvanz commented Mar 26, 2026

Description

Following the recommendation 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.

Following the recommendation 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>
@viccuad viccuad merged commit ea3e40a into kubewarden:main Mar 27, 2026
4 checks passed
@viccuad viccuad moved this from Pending review to Done in Kubewarden Admission Controller Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants