René's URL Explorer Experiment


Title: Fix merge conflict handling in the rebuild workflow by henrymercer · Pull Request #4191 · github/codeql-action · GitHub

Open Graph Title: Fix merge conflict handling in the rebuild workflow by henrymercer · Pull Request #4191 · github/codeql-action

X Title: Fix merge conflict handling in the rebuild workflow by henrymercer · Pull Request #4191 · github/codeql-action

Description: The rebuild workflow is meant to continue when merging the base branch only conflicts in lib, since rebuilding regenerates it. Since #3568, any conflict has failed the merge step instead, for example in this run. Steps run with bash -e, so a conflicting git merge ended the step before its exit code was recorded. The step now runs git merge as an if condition, which -e doesn't apply to, and continues only if MERGE_HEAD shows the merge is still in progress. Fixing that alone would have exposed a second bug: under pipefail, the check for conflicts outside lib never triggered, because git diff --check exits non-zero whenever it finds a conflict marker, including in lib. The check now lists unmerged paths with git diff --name-only --diff-filter=U, which also catches conflicts without markers, such as modify/delete conflicts. Risk assessment For internal use only. Please select the risk level of this change: Low risk: Changes are fully under feature flags, or have been fully tested and validated in pre-production environments and are highly observable, or are documentation or test only. Which use cases does this change impact? Environments: Testing/None - This change does not impact any CodeQL workflows in production. How did/will you validate this change? Other - I ran the merge step's script from the workflow under bash --noprofile --norc -e -o pipefail against scratch repositories. A clean merge passes, conflicts only in lib continue and set merge-in-progress, and content or modify/delete conflicts in src fail and list the file. I also ran the whole workflow on a temporary branch with the same conflict in lib/entry-points.js as the linked run. It succeeded, and the merge commit it pushed had no conflict markers. If something goes wrong after this change is released, what are the mitigation and rollback strategies? Development/testing only - This change cannot cause any failures in production. How will you know if something goes wrong after this change is released? Other - This change only affects the Rebuild Action workflow, so problems will show up as failed or incorrect rebuild runs. Are there any special considerations for merging or releasing this change? No special considerations - This change can be merged at any time. Merge / deployment checklist Confirm this change is backwards compatible with existing workflows. Consider adding a changelog entry for this change. Confirm the readme and docs have been updated if necessary.

Open Graph Description: The rebuild workflow is meant to continue when merging the base branch only conflicts in lib, since rebuilding regenerates it. Since #3568, any conflict has failed the merge step instead, for examp...

X Description: The rebuild workflow is meant to continue when merging the base branch only conflicts in lib, since rebuilding regenerates it. Since #3568, any conflict has failed the merge step instead, for examp...

Opengraph URL: https://github.com/github/codeql-action/pull/4191

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:598f6b63-8565-1f3a-22c9-887385c00ea2
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9964:257A3D:7A9622:A335AC:6AED2695
html-safe-nonce3b849049d5644d4cdd895ed851d2dafb7079d95e6488b58816a56d9dafe2bd09
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OTY0OjI1N0EzRDo3QTk2MjI6QTMzNUFDOjZBRUQyNjk1IiwidmlzaXRvcl9pZCI6IjI3OTYyMTE5MDQwNzE5MzU2MzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacfd1eb5f28ac69605fd75eb6a991648f43c29cbd9ebacb99b784520f19e130a49
hovercard-subject-tagpull_request:4718471957
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/github/codeql-action/pull/4191/files
twitter:imagehttps://avatars.githubusercontent.com/u/14129055?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/14129055?s=400&v=4
og:image:altThe rebuild workflow is meant to continue when merging the base branch only conflicts in lib, since rebuilding regenerates it. Since #3568, any conflict has failed the merge step instead, for examp...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None9d95365dda0576efe9b71f45807595e396bd0ca9286fba5367a05048e6ddf8f2
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/github/codeql-action git https://github.com/github/codeql-action.git
octolytics-dimension-user_id9919
octolytics-dimension-user_logingithub
octolytics-dimension-repository_id259445878
octolytics-dimension-repository_nwogithub/codeql-action
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id259445878
octolytics-dimension-repository_network_root_nwogithub/codeql-action
turbo-body-classeslogged-out env-production page-responsive
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release98b41fa4b5635ceb45a4c54320fced73817ff290
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/github/codeql-action/pull/4191/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql-action%2Fpull%2F4191%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql-action%2Fpull%2F4191%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=github%2Fcodeql-action
Reloadhttps://github.com/github/codeql-action/pull/4191/files
Reloadhttps://github.com/github/codeql-action/pull/4191/files
Reloadhttps://github.com/github/codeql-action/pull/4191/files
githubhttps://github.com/github
codeql-actionhttps://github.com/github/codeql-action
Codehttps://github.com/github/codeql-action
Issues164 (164)https://github.com/github/codeql-action/issues
Pull requests41 (41)https://github.com/github/codeql-action/pulls
Actionshttps://github.com/github/codeql-action/actions
Security and quality2 (2)https://github.com/github/codeql-action/security
Insightshttps://github.com/github/codeql-action/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fgithub%2Fcodeql-action%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fgithub%2Fcodeql-action%2Fissues%2Fnew%2Fchoose
henrymercerhttps://github.com/henrymercer
mainhttps://github.com/github/codeql-action/tree/main
henrymercer/ci-job-failure-investigationhttps://github.com/github/codeql-action/tree/henrymercer/ci-job-failure-investigation
Conversation 6 https://github.com/github/codeql-action/pull/4191
Commits 2 https://github.com/github/codeql-action/pull/4191/commits
Checks 234 https://github.com/github/codeql-action/pull/4191/checks
Files changed https://github.com/github/codeql-action/pull/4191/files
Please reload this pagehttps://github.com/github/codeql-action/pull/4191/files
Fix merge conflict handling in the rebuild workflow https://github.com/github/codeql-action/pull/4191/files#top
Show all changes 2 commits https://github.com/github/codeql-action/pull/4191/files
27c60c5 Fix detection of merge conflicts outside `lib` in the rebuild workflow henrymercer Oct 2, 2026 https://github.com/github/codeql-action/pull/4191/commits/27c60c532d33263f9ac74c05d9e8fff183957676
56b0d5f Fix the rebuild workflow failing when merging the base branch conflicts henrymercer Oct 2, 2026 https://github.com/github/codeql-action/pull/4191/commits/56b0d5f02c15aec22d79bfd6e21d4f7829742b54
Clear filters https://github.com/github/codeql-action/pull/4191/files
Please reload this pagehttps://github.com/github/codeql-action/pull/4191/files
Please reload this pagehttps://github.com/github/codeql-action/pull/4191/files
https://github.com/github/codeql-action/blob/main/CODEOWNERS#L1
.github/workflows/rebuild.ymlhttps://github.com/github/codeql-action/pull/4191/files#diff-0c7eab12920506f26fabb59326dd3db29190c63c1ad8135d61e7e6cdcaec2fc8
View file https://github.com/github/codeql-action/blob/56b0d5f02c15aec22d79bfd6e21d4f7829742b54/.github/workflows/rebuild.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql-action/pull/4191/{{ revealButtonHref }}
https://github.com/github/codeql-action/pull/4191/files#diff-0c7eab12920506f26fabb59326dd3db29190c63c1ad8135d61e7e6cdcaec2fc8
Please reload this pagehttps://github.com/github/codeql-action/pull/4191/files
https://github.com/github/codeql-action/pull/4191/files#diff-0c7eab12920506f26fabb59326dd3db29190c63c1ad8135d61e7e6cdcaec2fc8
Please reload this pagehttps://github.com/github/codeql-action/pull/4191/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.