Skip to content

ci: Fix checkout failure in pull_request_target workflows#6624

Open
ntkathole wants to merge 1 commit into
masterfrom
fix/allow-unsafe-pr-checkout
Open

ci: Fix checkout failure in pull_request_target workflows#6624
ntkathole wants to merge 1 commit into
masterfrom
fix/allow-unsafe-pr-checkout

Conversation

@ntkathole

Copy link
Copy Markdown
Member

What this PR does / why we need it:

Problem

actions/checkout v4.4.0
(released 2026-07-20) backported a security check from v7 that blocks checking out
fork PR code in pull_request_target workflows by default. This broke all fork PRs
that trigger:

  • pr-integration-tests
  • pr-registration-integration-tests

Error:

Refusing to check out fork pull request code from a 'pull_request_target' workflow.
This workflow runs with the base repository's GITHUB_TOKEN, secrets, default-branch
cache scope, and runner access.

See: https://github.blog/changelog/2026-06-18-safer-pull_request_target-defaults-for-github-actions-checkout/

Fix

Add allow-unsafe-pr-checkout: true to the 4 affected checkout steps across 2 workflow files.

Why this is safe

Both workflows already implement the recommended mitigations:

  • Label gating — jobs only run when a maintainer adds ok-to-test, approved, or lgtm
  • persist-credentials: false — PR code cannot steal the GITHUB_TOKEN
  • Repository checkgithub.repository == 'feast-dev/feast' prevents forks from self-triggering

@ntkathole ntkathole self-assigned this Jul 22, 2026
@codecov-commenter

codecov-commenter commented Jul 22, 2026

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 45.75%. Comparing base (ddb2e9a) to head (27b7e7a).
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #6624   +/-   ##
=======================================
  Coverage   45.74%   45.75%           
=======================================
  Files         414      414           
  Lines       49698    49700    +2     
  Branches     7087     7087           
=======================================
+ Hits        22736    22738    +2     
  Misses      25377    25377           
  Partials     1585     1585           
Flag Coverage Δ
go-feature-server 30.58% <ø> (ø)
python-unit 47.01% <ø> (+<0.01%) ⬆️
see 1 file with indirect coverage changes

Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ddb2e9a...27b7e7a. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

actions/checkout v4.4.0 (released 2026-07-20) backported a security
check that blocks checking out fork PR code in pull_request_target
workflows by default. This broke pr-integration-tests and
pr-registration-integration-tests for all fork PRs.

Add allow-unsafe-pr-checkout: true to the 4 affected checkout steps.
This is safe because both workflows already gate execution behind
maintainer-applied labels (ok-to-test / approved / lgtm) and set
persist-credentials: false.

Signed-off-by: ntkathole <nikhilkathole2683@gmail.com>
@ntkathole
ntkathole force-pushed the fix/allow-unsafe-pr-checkout branch from c865fb7 to 27b7e7a Compare July 23, 2026 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants