René's URL Explorer Experiment


Title: Fix handling of non-`string` values from repository properties API by mbg · Pull Request #3557 · github/codeql-action · GitHub

Open Graph Title: Fix handling of non-`string` values from repository properties API by mbg · Pull Request #3557 · github/codeql-action

X Title: Fix handling of non-`string` values from repository properties API by mbg · Pull Request #3557 · github/codeql-action

Description: Fixes #3555. The repository property API will return repository property objects where the value field is either string or string[]. We do not currently handle the latter. This PR makes the following changes: The first commit updates our type representation of the API responses to account for string[] values. The second changes the validation logic to only validate the type of value if it is for a property we care about. This also protects us against future changes to what types of value may be returned by the API. These two commits are enough to fix the bug. The third commit goes beyond this to enable us to use array-typed properties in the future by: Introducing a mapping from known repository properties to the expected API value types (RepositoryPropertyApiType). Changing repositoryPropertyParsers to return an object for each known property that contains both a validator function and a parser (PropertyInfo). The validator function (.validate) accepts any RepositoryPropertyValue (i.e. string | string[]), checks that it is the expected type, and narrows the type of value if successful. The value type validation is now in setProperty, which retrieves the PropertyInfo object for the repository property, calls validate, and then is either able to call parse if the check was successful (and the type narrowed) or throws the validation error. 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? Workflow types: Advanced setup - Impacts users who have custom CodeQL workflows. Managed - Impacts users with dynamic workflows (Default Setup, Code Quality, ...). Products: Code Scanning - The changes impact analyses when analysis-kinds: code-scanning. Code Quality - The changes impact analyses when analysis-kinds: code-quality. Other first-party - The changes impact other first-party analyses. Environments: Dotcom - Impacts CodeQL workflows on github.com and/or GitHub Enterprise Cloud with Data Residency. How did/will you validate this change? Unit tests - I am depending on unit test coverage (i.e. tests in .test.ts files). End-to-end tests - I am depending on PR checks (i.e. tests in pr-checks). If something goes wrong after this change is released, what are the mitigation and rollback strategies? Feature flags - All new or changed code paths can be fully disabled with corresponding feature flags. Rollback - Change can only be disabled by rolling back the release or releasing a new version with a fix. The repository properties feature is already FF-ed. If something goes wrong with this change, we can either disable the existing FF or perform a rollback. How will you know if something goes wrong after this change is released? Telemetry - I rely on existing telemetry or have made changes to the telemetry. Dashboards - I will watch relevant dashboards for issues after the release. Consider whether this requires this change to be released at a particular time rather than as part of a regular release. Alerts - New or existing monitors will trip if something goes wrong with this change. 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: Fixes #3555. The repository property API will return repository property objects where the value field is either string or string[]. We do not currently handle the latter. This PR makes the followi...

X Description: Fixes #3555. The repository property API will return repository property objects where the value field is either string or string[]. We do not currently handle the latter. This PR makes the followi...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:f8079ef1-f97a-c322-690d-7839ac88f569
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDFDE:236C7E:A865BA:E57CE7:6A4C8FAF
html-safe-nonce3b0c3c0bef507ee1199ed66ab009120dcbb3681c89460c49d38b8370e016b938
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERkRFOjIzNkM3RTpBODY1QkE6RTU3Q0U3OjZBNEM4RkFGIiwidmlzaXRvcl9pZCI6IjQ0Njc0NjczMTkxMjgxMzM1NTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac575d6f16acfe3bdfe228a009e4d5ebb0ed26b561a81f7caf524f3aa5014fbcea
hovercard-subject-tagpull_request:3373327609
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/3557/files
twitter:imagehttps://avatars.githubusercontent.com/u/278086?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/278086?s=400&v=4
og:image:altFixes #3555. The repository property API will return repository property objects where the value field is either string or string[]. We do not currently handle the latter. This PR makes the followi...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c
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
release7a2dede45637df6b92ddcfe2a557e67d4b5854ae
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/github/codeql-action/pull/3557/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql-action%2Fpull%2F3557%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%2F3557%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/3557/files
Reloadhttps://github.com/github/codeql-action/pull/3557/files
Reloadhttps://github.com/github/codeql-action/pull/3557/files
Please reload this pagehttps://github.com/github/codeql-action/pull/3557/files
github https://github.com/github
codeql-actionhttps://github.com/github/codeql-action
Notifications https://github.com/login?return_to=%2Fgithub%2Fcodeql-action
Fork 470 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
mbghttps://github.com/mbg
mainhttps://github.com/github/codeql-action/tree/main
mbg/repo-props/multi-selecthttps://github.com/github/codeql-action/tree/mbg/repo-props/multi-select
Conversation 13 https://github.com/github/codeql-action/pull/3557
Findings https://github.com/github/codeql-action/pull/3557/findings
Commits 7 https://github.com/github/codeql-action/pull/3557/commits
Checks 244 https://github.com/github/codeql-action/pull/3557/checks
Files changed 4 https://github.com/github/codeql-action/pull/3557/files
Fix handling of non-string values from repository properties API https://github.com/github/codeql-action/pull/3557/files#top
Show all changes 7 commits https://github.com/github/codeql-action/pull/3557/files
8e70ae2 Update `GitHubRepositoryProperty` to match schema mbg Mar 9, 2026 https://github.com/github/codeql-action/pull/3557/commits/8e70ae21a1b4b30a35f2b8c32f316dd8d1eee60e
9c75a5f Only validate property `value` type if we care about the property mbg Mar 9, 2026 https://github.com/github/codeql-action/pull/3557/commits/9c75a5f60ced7a336710741b803a179f74860d09
5899159 Validate `value` types returned by API against expectations mbg Mar 9, 2026 https://github.com/github/codeql-action/pull/3557/commits/58991590bdeb0592c668edbd4224fc7601648184
58314dc Export types that weren't already mbg Mar 9, 2026 https://github.com/github/codeql-action/pull/3557/commits/58314dce95a83b737c360e9356356e52a6a60777
5311ed4 Include type in error message mbg Mar 9, 2026 https://github.com/github/codeql-action/pull/3557/commits/5311ed41ea6559c31939a79deab8c6030b41cbaf
149fd14 Add unknown property with `string[]` value mbg Mar 9, 2026 https://github.com/github/codeql-action/pull/3557/commits/149fd14ac7b1778cea753416012a569738e88e87
6f90eb6 Add changelog entry mbg Mar 9, 2026 https://github.com/github/codeql-action/pull/3557/commits/6f90eb695f80e8870988630b44b1630ba747f3b9
Clear filters https://github.com/github/codeql-action/pull/3557/files
Please reload this pagehttps://github.com/github/codeql-action/pull/3557/files
Please reload this pagehttps://github.com/github/codeql-action/pull/3557/files
CHANGELOG.md https://github.com/github/codeql-action/pull/3557/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
init-action.js https://github.com/github/codeql-action/pull/3557/files#diff-bd9b22d62f144e71ae32a07c7c5151e30b31cd76d22303745df64c9886d81342
properties.test.ts https://github.com/github/codeql-action/pull/3557/files#diff-b0c82c57405f66bc38a832c5a2dfe10586f9e034516b456b34092df678c48baf
properties.ts https://github.com/github/codeql-action/pull/3557/files#diff-d31485648dc2fa1d5c34f158d6e805228e1bb63477510792372423cd52466be0
https://github.com/github/codeql-action/blob/main/CODEOWNERS#L1
CHANGELOG.mdhttps://github.com/github/codeql-action/pull/3557/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
View file https://github.com/github/codeql-action/blob/6f90eb695f80e8870988630b44b1630ba747f3b9/CHANGELOG.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql-action/pull/3557/{{ revealButtonHref }}
https://github.com/github/codeql-action/pull/3557/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
https://github.com/github/codeql-action/pull/3557/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
https://github.com/github/codeql-action/blob/main/CODEOWNERS#L1
lib/init-action.jshttps://github.com/github/codeql-action/pull/3557/files#diff-bd9b22d62f144e71ae32a07c7c5151e30b31cd76d22303745df64c9886d81342
View file https://github.com/github/codeql-action/blob/6f90eb695f80e8870988630b44b1630ba747f3b9/lib/init-action.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/3557/files
https://github.com/github/codeql-action/blob/main/CODEOWNERS#L1
src/feature-flags/properties.test.tshttps://github.com/github/codeql-action/pull/3557/files#diff-b0c82c57405f66bc38a832c5a2dfe10586f9e034516b456b34092df678c48baf
View file https://github.com/github/codeql-action/blob/6f90eb695f80e8870988630b44b1630ba747f3b9/src/feature-flags/properties.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql-action/pull/3557/{{ revealButtonHref }}
https://github.com/github/codeql-action/pull/3557/files#diff-b0c82c57405f66bc38a832c5a2dfe10586f9e034516b456b34092df678c48baf
https://github.com/github/codeql-action/pull/3557/files#diff-b0c82c57405f66bc38a832c5a2dfe10586f9e034516b456b34092df678c48baf
https://github.com/github/codeql-action/pull/3557/files#diff-b0c82c57405f66bc38a832c5a2dfe10586f9e034516b456b34092df678c48baf
https://github.com/github/codeql-action/pull/3557/files#diff-b0c82c57405f66bc38a832c5a2dfe10586f9e034516b456b34092df678c48baf
https://github.com/github/codeql-action/pull/3557/files#diff-b0c82c57405f66bc38a832c5a2dfe10586f9e034516b456b34092df678c48baf
https://github.com/github/codeql-action/pull/3557/files#diff-b0c82c57405f66bc38a832c5a2dfe10586f9e034516b456b34092df678c48baf
https://github.com/github/codeql-action/blob/main/CODEOWNERS#L1
src/feature-flags/properties.tshttps://github.com/github/codeql-action/pull/3557/files#diff-d31485648dc2fa1d5c34f158d6e805228e1bb63477510792372423cd52466be0
View file https://github.com/github/codeql-action/blob/6f90eb695f80e8870988630b44b1630ba747f3b9/src/feature-flags/properties.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql-action/pull/3557/{{ revealButtonHref }}
https://github.com/github/codeql-action/pull/3557/files#diff-d31485648dc2fa1d5c34f158d6e805228e1bb63477510792372423cd52466be0
Please reload this pagehttps://github.com/github/codeql-action/pull/3557/files
Please reload this pagehttps://github.com/github/codeql-action/pull/3557/files
Please reload this pagehttps://github.com/github/codeql-action/pull/3557/files
Please reload this pagehttps://github.com/github/codeql-action/pull/3557/files
Please reload this pagehttps://github.com/github/codeql-action/pull/3557/files
https://github.com/github/codeql-action/pull/3557/files#diff-d31485648dc2fa1d5c34f158d6e805228e1bb63477510792372423cd52466be0
https://github.com/github/codeql-action/pull/3557/files#diff-d31485648dc2fa1d5c34f158d6e805228e1bb63477510792372423cd52466be0
https://github.com/github/codeql-action/pull/3557/files#diff-d31485648dc2fa1d5c34f158d6e805228e1bb63477510792372423cd52466be0
Please reload this pagehttps://github.com/github/codeql-action/pull/3557/files
Please reload this pagehttps://github.com/github/codeql-action/pull/3557/files
https://github.com/github/codeql-action/pull/3557/files#diff-d31485648dc2fa1d5c34f158d6e805228e1bb63477510792372423cd52466be0
Please reload this pagehttps://github.com/github/codeql-action/pull/3557/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.