Skip to content

[main] Fix(ci): allow checkout of gated PR head SHA under actions/checkout#3820

Open
prkalle wants to merge 1 commit into
cloudfoundry:mainfrom
prkalle:fix/checkout_pr_ref_main
Open

[main] Fix(ci): allow checkout of gated PR head SHA under actions/checkout#3820
prkalle wants to merge 1 commit into
cloudfoundry:mainfrom
prkalle:fix/checkout_pr_ref_main

Conversation

@prkalle

@prkalle prkalle commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Description of the Change

This PR fixes CI for integration tests by allowing checkout of gated PR head SHA under actions/checkout

Why Is This PR Valuable?

Fixes CI

Applicable Issues

How Urgent Is The Change?

Fairly urgent to fix the CI

Other Relevant Parties

Who else is affected by the change?

actions/checkout v7 now refuses to check out a pull_request_target ref
other than the safe default, to block pwn-request attacks. Our checkouts
of needs.get-sha.outputs.gitRef / inputs.gitRef are already gated by
get-sha's author-association and safe-to-test label checks, so opt back
in with allow-unsafe-pr-checkout: true on those two steps.

Signed-off-by: Prem Kumar Kalle <prem.kalle@broadcom.com>
@prkalle prkalle changed the title Fix(ci): allow checkout of gated PR head SHA under actions/checkout [main] Fix(ci): allow checkout of gated PR head SHA under actions/checkout Jul 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant