Skip to content

Add parameter to fix checkout - #9929

Merged
amd-gevadlam merged 1 commit into
Xilinx:masterfrom
amd-gevadlam:fix_checkout
Jul 20, 2026
Merged

Add parameter to fix checkout#9929
amd-gevadlam merged 1 commit into
Xilinx:masterfrom
amd-gevadlam:fix_checkout

Conversation

@amd-gevadlam

@amd-gevadlam amd-gevadlam commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

The actions/checkout@v3 tag was updated upstream to include a new security guardrail that blocks checking out fork PR code in pull_request_target workflows by default. This is to prevent "pwn request" vulnerabilities where untrusted fork code runs with access to the base repo's secrets and GITHUB_TOKEN.

PRs before July 18 (e.g. #9926) were unaffected because they ran against the older checkout SHA. PRs after (e.g. #9927) all fail at checkout before the build even starts.

Fix
Add allow-unsafe-pr-checkout: true to the three "Checkout PR" steps in xrt_ci.yml (in the build, windows-build, and apu-package-build jobs).

This is safe in our workflow because the authorize job already gates all builds behind an allowlist check — untrusted fork authors cannot trigger builds without prior approval.

@amd-gevadlam
amd-gevadlam requested review from a team, manikandan-xilinx and stsoe as code owners July 20, 2026 20:34

@stsoe stsoe left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For history sake, it would be helpful to explain the change in the PR description.

@github-actions

Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@amd-gevadlam

Copy link
Copy Markdown
Collaborator Author

For history sake, it would be helpful to explain the change in the PR description.

Added, Could you please review? We neeed to get this merged in order to reflect in the CI builds. The PR build would still fail because it takes only the master's CI code.

@amd-gevadlam
amd-gevadlam requested a review from stsoe July 20, 2026 20:41

@stsoe stsoe left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for adding the description.

@amd-gevadlam
amd-gevadlam merged commit 5d23517 into Xilinx:master Jul 20, 2026
12 of 21 checks passed
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.

2 participants