Title: Provide a way to pass a whole configuration as parameter · Issue #1589 · github/codeql-action · GitHub
Open Graph Title: Provide a way to pass a whole configuration as parameter · Issue #1589 · github/codeql-action
X Title: Provide a way to pass a whole configuration as parameter · Issue #1589 · github/codeql-action
Description: Problem As a user of GitHub CodeQL in Actions I would like to be able to pass some configuration when running my workflow, for example: pass a query filter from or environment variable or input parameter Today only a subset of the availa...
Open Graph Description: Problem As a user of GitHub CodeQL in Actions I would like to be able to pass some configuration when running my workflow, for example: pass a query filter from or environment variable or input par...
X Description: Problem As a user of GitHub CodeQL in Actions I would like to be able to pass some configuration when running my workflow, for example: pass a query filter from or environment variable or input par...
Opengraph URL: https://github.com/github/codeql-action/issues/1589
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Provide a way to pass a whole configuration as parameter","articleBody":"\r\n## Problem\r\n\r\nAs a user of GitHub CodeQL in Actions I would like to be able to pass some configuration when running my workflow, for example:\r\n- pass a query filter from or environment variable or input parameter\r\n\r\nToday only a subset of the available configuration/parameters is available in the action.\r\n\r\n## Solution\r\n\r\nAdd a new parameter, for example called `configuration` that will take the same format as a `config-file` but can be used directly in the action.\r\n\r\nThe idea is to support the following examples:\r\n\r\n- Complete on configuration\r\n ```yaml\r\n - uses: github/codeql-action/init@v2\r\n with:\r\n languages: ${{ matrix.language }}\r\n configuration: |\r\n disable-default-queries: true\r\n queries:\r\n - uses: security-extended\r\n - uses: security-and-quality\r\n query-filters:\r\n - include:\r\n tags: /cwe-020/\r\n ```\r\n\r\n- Actions Variable\r\n ```yaml\r\n - uses: github/codeql-action/init@v2\r\n with:\r\n languages: ${{ matrix.language }}\r\n configuration: |\r\n ${{vars.CODEQL_CONF}} \r\n ```\r\n\r\n- Input Parameter\r\n ```yaml\r\n - uses: tgrall/codeql-action/init@query-filter\r\n with:\r\n languages: ${{ matrix.language }}\r\n configuration: |\r\n disable-default-queries: true\r\n queries:\r\n - uses: security-extended\r\n - uses: security-and-quality\r\n query-filters:\r\n - include:\r\n tags: /${{ github.event.inputs.codeql-include-tags }}/ \r\n ```\r\n\r\n","author":{"url":"https://github.com/tgrall","@type":"Person","name":"tgrall"},"datePublished":"2023-03-18T13:31:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1589/codeql-action/issues/1589"}
| 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:5c65ae18-77ec-8120-f1c8-5e3aa62269f8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BC96:1730DB:46EE82:60E21D:6A4F329D |
| html-safe-nonce | c5799add25b9ec8c1be143744389153d162084c1418137659a2fa3e23839f497 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzk2OjE3MzBEQjo0NkVFODI6NjBFMjFEOjZBNEYzMjlEIiwidmlzaXRvcl9pZCI6IjM1MTI1NDY3NzQ2ODk0NjA4OTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c22f519780776fe1b06cea529a327a0d83f39593183fa0ba9d5d465a86ec2eef |
| hovercard-subject-tag | issue:1630325270 |
| 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/1589/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b6bf20f366cd30858bbf7cf33552741b8676860e16d6b282521955547e7ea1bf/github/codeql-action/issues/1589 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b6bf20f366cd30858bbf7cf33552741b8676860e16d6b282521955547e7ea1bf/github/codeql-action/issues/1589 |
| og:image:alt | Problem As a user of GitHub CodeQL in Actions I would like to be able to pass some configuration when running my workflow, for example: pass a query filter from or environment variable or input par... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tgrall |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| 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 | 2b8f23afb982271f1b22258a94aede67a6b77760 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width