Title: CodeQL Action fails to handle multi_select repository properties (expects string, gets array) · Issue #3555 · github/codeql-action · GitHub
Open Graph Title: CodeQL Action fails to handle multi_select repository properties (expects string, gets array) · Issue #3555 · github/codeql-action
X Title: CodeQL Action fails to handle multi_select repository properties (expects string, gets array) · Issue #3555 · github/codeql-action
Description: Description When an organization defines a custom repository property with value_type: multi_select, the Initialize CodeQL step logs a warning and fails to load repository properties entirely: ##[warning]Failed to load repository propert...
Open Graph Description: Description When an organization defines a custom repository property with value_type: multi_select, the Initialize CodeQL step logs a warning and fails to load repository properties entirely: ##[w...
X Description: Description When an organization defines a custom repository property with value_type: multi_select, the Initialize CodeQL step logs a warning and fails to load repository properties entirely: ##[w...
Opengraph URL: https://github.com/github/codeql-action/issues/3555
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"CodeQL Action fails to handle multi_select repository properties (expects string, gets array)","articleBody":"## Description\n\nWhen an organization defines a custom repository property with `value_type: multi_select`, the `Initialize CodeQL` step logs a warning and fails to load repository properties entirely:\n\n```\n##[warning]Failed to load repository properties: Encountered an error while trying to determine repository properties: Error: Expected repository property 'products' to have a string value, but got: {\"property_name\":\"products\",\"value\":[\"scan\"]}\n```\n\nThis occurs because the action expects all repository property values to be strings, but the GitHub API correctly returns `multi_select` properties as arrays of strings.\n\n## Steps to reproduce\n\n1. Create an org-level custom property with `value_type: multi_select` (e.g. `products`)\n2. Set a value on a repository (e.g. `[\"scan\"]`)\n3. Run CodeQL default setup on that repository — the `Initialize CodeQL` step will log the above warning\n\n## Expected behaviour\n\nThe action should handle `multi_select` property values (arrays of strings) without erroring. It could either:\n- Treat each element as a separate value to match against, or\n- Skip property-based filtering for `multi_select` properties rather than failing entirely\n\n## Actual behaviour\n\nThe action throws `Expected repository property 'products' to have a string value` and skips all repository property-based configuration, even for properties that are not the `multi_select` one.\n\n## Impact\n\n- CodeQL analysis still runs and completes successfully (the warning is non-fatal)\n- However, any org-level policy that would be selected based on repository properties is not applied\n- The warning is noise in logs and may be mistaken for a failure\n\n## Environment\n\n- `github/codeql-action`: v4 (default setup, auto-generated workflow)\n- Repository property type: `multi_select` (GitHub org custom properties API)\n- Language analysed: `javascript-typescript`, `actions`\n\n## Workaround\n\nNone available at the repository or organisation level without either:\n- Changing the property type to `single_select` (breaks repos that legitimately have multiple values), or\n- Removing the property value from the repository (loses classification metadata)\n\nThe fix needs to be in the action itself to handle array-valued properties.","author":{"url":"https://github.com/john-latham","@type":"Person","name":"john-latham"},"datePublished":"2026-03-06T17:25:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/3555/codeql-action/issues/3555"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:36fd8d7d-ad0a-b263-6785-86f8ab67691b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B9AA:1CCE98:254E8B:340236:6A4D09AB |
| html-safe-nonce | eccdd03fb65ab6d57ad7851f15b708bfa2ff53b95f66cf2811943fe6e714e1d5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOUFBOjFDQ0U5ODoyNTRFOEI6MzQwMjM2OjZBNEQwOUFCIiwidmlzaXRvcl9pZCI6IjgwODU3ODI0MjQ4MTY3ODE3MzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 31a09fdbf06c7c51da2a0c35f0f9850ffa5577574a7497cba400c4022e4792a0 |
| hovercard-subject-tag | issue:4035313081 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/codeql-action/3555/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7fdefbc7f1137c7b5e06dae7a3158f9da92b0df7c1b6a401b4a67bbfaa826211/github/codeql-action/issues/3555 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7fdefbc7f1137c7b5e06dae7a3158f9da92b0df7c1b6a401b4a67bbfaa826211/github/codeql-action/issues/3555 |
| og:image:alt | Description When an organization defines a custom repository property with value_type: multi_select, the Initialize CodeQL step logs a warning and fails to load repository properties entirely: ##[w... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | john-latham |
| hostname | github.com |
| expected-hostname | github.com |
| None | 31e4db13a9e20081f2fac78f441659a6576e582bbb15e153f9c7fb6473aa29f5 |
| turbo-cache-control | no-preview |
| go-import | github.com/github/codeql-action git https://github.com/github/codeql-action.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 259445878 |
| octolytics-dimension-repository_nwo | github/codeql-action |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 259445878 |
| octolytics-dimension-repository_network_root_nwo | github/codeql-action |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | fb70bd3c4b2bec429781b65419e912c66e2d5581 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width