Repository navigation
ci: document Actions event policy needed for pull_request_target - #938
Merged
Merged
Conversation
foursixnine
force-pushed
the
ci-pull-request-target-policy
branch
from
October 7, 2026 08:59
648649d to
38a1ff6
Compare
GitHub is enforcing (2026-11-02) a default Actions event policy for public repositories that blocks workflows triggered by pull_request_target unless an explicit policy allows it. Without action this workflow would stop triggering on pull requests. A repository-level Actions event policy explicitly allowing pull_request_target, scoped to this workflow file, has been created via the GitHub REST API so the workflow keeps working after enforcement. This commit documents why and how, for future maintainers. Assisted-by: GitHub Copilot Claude Sonnet 5
foursixnine
force-pushed
the
ci-pull-request-target-policy
branch
from
October 7, 2026 09:00
38a1ff6 to
5b23e24
Compare
okurz
approved these changes
Oct 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GitHub is enforcing (2026-11-02) a default Actions event policy for public repositories that blocks workflows triggered by
pull_request_targetunless an explicit policy allows it (see https://docs.github.com/actions/reference/security/securely-using-pull_request_target).Without action,
.github/workflows/ci.yml(which relies onpull_request_targetto safely accessAPIKEY/APISECRETsecrets while checking out PR content into a subdirectory for inspection only) would stop triggering on pull requests after that date.Action taken:
POST /repos/os-autoinst/opensuse-jobgroups/actions/policies) that explicitly allowspushandpull_request_target, scoped to.github/workflows/ci.yml, withenforcement: active. This keeps the workflow triggering correctly both before and after GitHub's Nov 2, 2026 enforcement date.pull_request_targetis safe (no PR code is ever executed, only linted/inspected as data), and where to find/manage the policy.No functional changes to workflow steps.