Skip to content

Fix stale base checkout in Meta import risk triage - #60465

Merged
cortinico merged 1 commit into
react:mainfrom
cortinico:codex/fix-meta-import-stale-base
Dec 2, 2026
Merged

cortinico merged 1 commit into
react:mainfrom
cortinico:codex/fix-meta-import-stale-base

Conversation

@cortinico

Copy link
Copy Markdown
Contributor

Summary:

Fix Meta import risk triage failures on older PRs whose pull_request_target event carries a stale base.sha. The workflow can be loaded from current main while its explicit checkout uses that older SHA, leaving newly added workflow helper scripts unavailable. Check out the current trusted PR base branch in all three jobs instead. PR head code is still never checked out or executed, and checkout credentials remain unpersisted.

Changelog:

[INTERNAL] [FIXED] - Keep Meta import risk triage helper scripts in sync with the workflow version.

Test Plan:

  • ruby -e "require 'yaml'; YAML.load_file('.github/workflows/meta-import-risk.yml'); puts 'YAML valid'" — passed.
  • actionlint v1.7.12 .github/workflows/meta-import-risk.yml — passed.
  • git diff --check — passed.
  • Live GitHub Actions execution has not been run; this requires a PR event after the fix lands.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 2, 2026
@facebook-github-tools facebook-github-tools Bot added p: Facebook Partner: Facebook Partner labels Dec 2, 2026
@github-actions github-actions Bot added the Meta Review Required This PR is considered risky and requires Meta to import it to do more testing before merging. label Dec 2, 2026
@cortinico
cortinico marked this pull request as ready for review December 2, 2026 10:49
@cortinico
cortinico requested review from huntie and robhogan December 2, 2026 10:49
@cortinico cortinico removed the Meta Review Required This PR is considered risky and requires Meta to import it to do more testing before merging. label Dec 2, 2026
@cortinico
cortinico merged commit 7040f05 into react:main Dec 2, 2026
58 of 60 checks passed
@cortinico
cortinico deleted the codex/fix-meta-import-stale-base branch December 2, 2026 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants