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: redirect.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:767de585-5f96-7e47-1aca-1315d4573e90 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BD36:AF0A5:A2D978:DD185D:6A4D4F7F |
| html-safe-nonce | 2252834525a0025d29a8234ece8f1df9c78e99b86c45e40fae6464c703f84b94 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDM2OkFGMEE1OkEyRDk3ODpERDE4NUQ6NkE0RDRGN0YiLCJ2aXNpdG9yX2lkIjoiNjUyMTYwNDY1MDQyODA5MjI4NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d688a924c32884bf3053eaf32e479b7d86dec19b3ae7b95a2823ac30e9e14eec |
| 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 | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| 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 | 56fc8347865a14e2ec811533d68f929cf4e0ec19 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width