CNTRLPLANE-3352: fix GHA reusable workflow for fork PRs - #8818
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
@bryan-cox: This pull request references CNTRLPLANE-3352 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "5.0.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 11✅ Passed checks (11 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bryan-cox The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
The openshift-developer bundle's transitive dependencies (gopls-lsp, prodsec-skills) are now bundled in the ai-helpers marketplace, so the extra marketplace add commands are no longer needed. Additionally, the plugin install step attempts SSH clones for source repos which fails on GHA runners that lack SSH keys. Add GIT_CONFIG env vars to force HTTPS clones instead. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
7dfd3b3 to
fe41296
Compare
|
/area ai |
|
/lgtm |
|
Pipeline controller notification No second-stage tests were triggered for this PR. This can happen when:
Use |
|
/verified later @bryan-cox |
|
@bryan-cox: This PR has been marked to be verified later by DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
@bryan-cox: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
What this PR does / why we need it:
Fixes three issues in the reusable Claude GHA workflow that prevented it
from working on community fork PRs:
SSH clone failure: Plugin dependencies with external source repos
are cloned via SSH, which fails on GHA runners without SSH keys
(
Host key verification failed). AddsGIT_CONFIGenv vars toredirect
git@github.com:tohttps://github.com/.Fork PR resolution failure: For PRs from community forks
(
hypershift-community/hypershift), the checkout setsoriginto thefork. The
ghCLI then resolves PR numbers against the fork insteadof
openshift/hypershift, causingCould not resolve to a PullRequesterrors. Adds
GH_REPO: ${{ github.repository }}soghalwaystargets the upstream repo.
Fork token can't write to upstream:
GH_TOKENwas set to thefork app token for community PRs, but
gh pr commentneeds writeaccess to
openshift/hypershift. ChangedGH_TOKENtogithub.tokenwhich haspull-requests: writeon the upstream repo.Git push still works because
actions/checkoutpersists the app tokenvia
persist-credentials: true.Evidence:
Which issue(s) this PR fixes:
Fixes CNTRLPLANE-3352
Special notes for your reviewer:
Depends on openshift-eng/ai-helpers#565 (already merged).
Checklist:
Summary by CodeRabbit