René's URL Explorer Experiment


Title: Categorize Code Quality "not enabled" upload failure as user-error by henrymercer · Pull Request #3972 · github/codeql-action · GitHub

Open Graph Title: Categorize Code Quality "not enabled" upload failure as user-error by henrymercer · Pull Request #3972 · github/codeql-action

X Title: Categorize Code Quality "not enabled" upload failure as user-error by henrymercer · Pull Request #3972 · github/codeql-action

Description: When a repository requests Code Quality analysis but it is not enabled, the analyze/finish job fails and is reported with status=failure, when it should be user-error: this is a customer configuration problem, not a CodeQL Action bug. We saw a burst of ~290 such failures from a single org, all surfacing this miscategorization. The root cause is the code-quality SARIF upload (PUT /repos/:owner/:repo/code-quality/analysis). On a 403 it returns the message Code quality is not enabled for this repository. Please enable code quality in the repository settings.. wrapApiConfigurationError only converts a 403 into a ConfigurationError when isEnablementError matches a known pattern, and none of the existing patterns covered the Code Quality wording. So the error stayed a plain Error, and getActionsStatus mapped it to failure. This change adds a /Code Quality is not enabled/i pattern to isEnablementError, mirroring the existing /Code Scanning is not enabled/i entry. The error now becomes a ConfigurationError and is correctly categorized as user-error. The case-insensitive flag tolerates the observed lowercase wording. The existing enablement-error unit test in src/api-client.test.ts is extended with the Code Quality message. The change is intentionally surgical, with no broader error-handling refactor. Risk assessment For internal use only. Please select the risk level of this change: Low risk: Documentation/test-only and telemetry categorization only; no change to upload behavior or control flow beyond how an already-failing case is labelled. Which use cases does this change impact? Workflow types: Managed - Impacts users with dynamic workflows (Default Setup, Code Quality, ...). Products: Code Quality - The changes impact analyses when analysis-kinds: code-quality. Environments: Dotcom - Impacts CodeQL workflows on github.com and/or GitHub Enterprise Cloud with Data Residency. GHES - Impacts CodeQL workflows on GitHub Enterprise Server. How did/will you validate this change? Unit tests - I am depending on unit test coverage (i.e. tests in .test.ts files). The existing enablement-error test is extended with the Code Quality message. If something goes wrong after this change is released, what are the mitigation and rollback strategies? Rollback - Change can only be disabled by rolling back the release or releasing a new version with a fix. The blast radius is limited to how an already-failing upload is categorized in telemetry. How will you know if something goes wrong after this change is released? Telemetry - The status report report_status.status for these Code Quality enablement failures should move from failure to user-error. 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: When a repository requests Code Quality analysis but it is not enabled, the analyze/finish job fails and is reported with status=failure, when it should be user-error: this is a customer configurat...

X Description: When a repository requests Code Quality analysis but it is not enabled, the analyze/finish job fails and is reported with status=failure, when it should be user-error: this is a customer configurat...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:2960816c-ba65-04bf-fdac-0c69a2b4e63a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE2C2:14CAC9:1D71160:283927A:6A4C105F
html-safe-nonce1ecca4c6a6ee65825c2c147c100c8efeecd383301e292dc5763ec0b0b6c7c531
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMkMyOjE0Q0FDOToxRDcxMTYwOjI4MzkyN0E6NkE0QzEwNUYiLCJ2aXNpdG9yX2lkIjoiMTM1ODg4Nzk0Mjk3MDE1MTAwNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaca8207da02365d1ec0622adc3a7a576be189d9b9db575c66de15d4979cebf7047
hovercard-subject-tagpull_request:3921066820
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/3972/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:altWhen a repository requests Code Quality analysis but it is not enabled, the analyze/finish job fails and is reported with status=failure, when it should be user-error: this is a customer configurat...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None0ccfc9e5281bfe12e38a4d632dc422843e4d5b6757917f7efda2f6567d72fea9
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release18812876666a23a0912556e224383baa4c84cf8e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/github/codeql-action/pull/3972/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql-action%2Fpull%2F3972%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql-action%2Fpull%2F3972%2Ffiles
Sign up https://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/3972/files
Reloadhttps://github.com/github/codeql-action/pull/3972/files
Reloadhttps://github.com/github/codeql-action/pull/3972/files
Please reload this pagehttps://github.com/github/codeql-action/pull/3972/files
github https://github.com/github
codeql-actionhttps://github.com/github/codeql-action
Notifications https://github.com/login?return_to=%2Fgithub%2Fcodeql-action
Fork 471 https://github.com/login?return_to=%2Fgithub%2Fcodeql-action
Star 1.6k https://github.com/login?return_to=%2Fgithub%2Fcodeql-action
Code https://github.com/github/codeql-action
Issues 156 https://github.com/github/codeql-action/issues
Pull requests 27 https://github.com/github/codeql-action/pulls
Actions https://github.com/github/codeql-action/actions
Models https://github.com/github/codeql-action/models
Security and quality 2 https://github.com/github/codeql-action/security
Insights https://github.com/github/codeql-action/pulse
Code https://github.com/github/codeql-action
Issues https://github.com/github/codeql-action/issues
Pull requests https://github.com/github/codeql-action/pulls
Actions https://github.com/github/codeql-action/actions
Models https://github.com/github/codeql-action/models
Security and quality https://github.com/github/codeql-action/security
Insights https://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/code-quality-user-error-categorizationhttps://github.com/github/codeql-action/tree/henrymercer/code-quality-user-error-categorization
Conversation 1 https://github.com/github/codeql-action/pull/3972
Findings https://github.com/github/codeql-action/pull/3972/findings
Commits 2 https://github.com/github/codeql-action/pull/3972/commits
Checks 225 https://github.com/github/codeql-action/pull/3972/checks
Files changed https://github.com/github/codeql-action/pull/3972/files
Please reload this pagehttps://github.com/github/codeql-action/pull/3972/files
Categorize Code Quality "not enabled" upload failure as user-error https://github.com/github/codeql-action/pull/3972/files#top
Show all changes 2 commits https://github.com/github/codeql-action/pull/3972/files
6feed54 Categorize Code Quality "not enabled" upload failure as user-error henrymercer Jun 23, 2026 https://github.com/github/codeql-action/pull/3972/commits/6feed5452f778bbb41eb90c8d921ab6b56715987
d990aa1 Merge branch 'main' into henrymercer/code-quality-user-error-categori… mbg Jun 23, 2026 https://github.com/github/codeql-action/pull/3972/commits/d990aa1c2a4af3faf05c76005f14ec3eb89f9ab3
Clear filters https://github.com/github/codeql-action/pull/3972/files
Please reload this pagehttps://github.com/github/codeql-action/pull/3972/files
Please reload this pagehttps://github.com/github/codeql-action/pull/3972/files
entry-points.js https://github.com/github/codeql-action/pull/3972/files#diff-73697317a7dd14441dcfb24bc586f637ae2b815b5e503a05a81816be74fcd815
api-client.test.ts https://github.com/github/codeql-action/pull/3972/files#diff-c885eacf675ef06f18293958b918f7b8d5faca26b60940bf17da595e6caabaae
api-client.ts https://github.com/github/codeql-action/pull/3972/files#diff-42ff9f1380ec4f23f68cf329edd327ab3298a662fc2df90bd01da76a69fecf59
https://github.com/github/codeql-action/blob/main/CODEOWNERS#L1
lib/entry-points.jshttps://github.com/github/codeql-action/pull/3972/files#diff-73697317a7dd14441dcfb24bc586f637ae2b815b5e503a05a81816be74fcd815
View file https://github.com/github/codeql-action/blob/d990aa1c2a4af3faf05c76005f14ec3eb89f9ab3/lib/entry-points.js
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/github/codeql-action/pull/3972/files
https://github.com/github/codeql-action/blob/main/CODEOWNERS#L1
src/api-client.test.tshttps://github.com/github/codeql-action/pull/3972/files#diff-c885eacf675ef06f18293958b918f7b8d5faca26b60940bf17da595e6caabaae
View file https://github.com/github/codeql-action/blob/d990aa1c2a4af3faf05c76005f14ec3eb89f9ab3/src/api-client.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql-action/pull/3972/{{ revealButtonHref }}
https://github.com/github/codeql-action/pull/3972/files#diff-c885eacf675ef06f18293958b918f7b8d5faca26b60940bf17da595e6caabaae
https://github.com/github/codeql-action/pull/3972/files#diff-c885eacf675ef06f18293958b918f7b8d5faca26b60940bf17da595e6caabaae
https://github.com/github/codeql-action/blob/main/CODEOWNERS#L1
src/api-client.tshttps://github.com/github/codeql-action/pull/3972/files#diff-42ff9f1380ec4f23f68cf329edd327ab3298a662fc2df90bd01da76a69fecf59
View file https://github.com/github/codeql-action/blob/d990aa1c2a4af3faf05c76005f14ec3eb89f9ab3/src/api-client.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql-action/pull/3972/{{ revealButtonHref }}
https://github.com/github/codeql-action/pull/3972/files#diff-42ff9f1380ec4f23f68cf329edd327ab3298a662fc2df90bd01da76a69fecf59
https://github.com/github/codeql-action/pull/3972/files#diff-42ff9f1380ec4f23f68cf329edd327ab3298a662fc2df90bd01da76a69fecf59
Please reload this pagehttps://github.com/github/codeql-action/pull/3972/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.