Title: Enabling zstd bundles for GHES seems to have broken proxy support on Enterprise Cloud with self-hosted runners · Issue #2593 · github/codeql-action · GitHub
Open Graph Title: Enabling zstd bundles for GHES seems to have broken proxy support on Enterprise Cloud with self-hosted runners · Issue #2593 · github/codeql-action
X Title: Enabling zstd bundles for GHES seems to have broken proxy support on Enterprise Cloud with self-hosted runners · Issue #2593 · github/codeql-action
Description: It looks like a recent change to enable zstd bundles on GHES has broken CodeQL scanning for anyone on Enterprise Cloud with self-hosted runners that are behind a proxy that is configured by the normal https_proxy type system variables. I...
Open Graph Description: It looks like a recent change to enable zstd bundles on GHES has broken CodeQL scanning for anyone on Enterprise Cloud with self-hosted runners that are behind a proxy that is configured by the nor...
X Description: It looks like a recent change to enable zstd bundles on GHES has broken CodeQL scanning for anyone on Enterprise Cloud with self-hosted runners that are behind a proxy that is configured by the nor...
Opengraph URL: https://github.com/github/codeql-action/issues/2593
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Enabling zstd bundles for GHES seems to have broken proxy support on Enterprise Cloud with self-hosted runners","articleBody":"It looks like a recent change to enable zstd bundles on GHES has broken CodeQL scanning for anyone on Enterprise Cloud with self-hosted runners that are behind a proxy that is configured by the normal `https_proxy` type system variables.\r\n\r\nI did some investigation to understand why, and it appears that in the commit https://github.com/github/codeql-action/commit/33f2dc57a419743d4e5f95dab4045a64d0d76809 the code path used now always uses the streaming version as the feature flag that previously prevented it has been removed.\r\n\r\nThe main problem seems to be that the change from v3.27.0 to v3.27.1 has switched http libraries and broken the previous proxy support.\r\n\r\nSpecifically, in the working v3.27.0 version, the feature flag checked here:\r\nhttps://github.com/github/codeql-action/blob/v3.27.0/lib/tools-download.js#L59\r\nwasn't triggered and therefore it used this code path:\r\nhttps://github.com/github/codeql-action/blob/v3.27.0/lib/tools-download.js#L73\r\nwhich downloads via the `tool-cache`:\r\nhttps://github.com/actions/toolkit/blob/main/packages/tool-cache/src/tool-cache.ts\r\nand this respects the system proxy variables as you can see in:\r\nhttps://github.com/actions/toolkit/blob/main/packages/http-client/src/proxy.ts\r\n\r\nUnfortunately, now the feature flag is removed in v3.27.1:\r\nhttps://github.com/github/codeql-action/blob/v3.27.1/lib/tools-download.js#L62\r\nit always uses the streaming method, but this does not use the [toolkit http-client](https://github.com/actions/toolkit/tree/main/packages/http-client) that includes system proxy support but instead appears to use the `follow_directs` library here:\r\nhttps://github.com/github/codeql-action/blob/v3.27.1/lib/tools-download.js#L62\r\nwhich appears to be a small wrapper over the basic node fetch functionality and does not support proxies as far as I can make out.\r\n\r\nThis ultimately has meant that we've had to revert to v3.27.0 functionality to get CodeQL scanning in our Enterprise Cloud self-hosted runners working again.\r\n\r\nAs a short term fix, is it possible this feature flag can be brought back until proxy support has been added to the new streaming method?","author":{"url":"https://github.com/vyadh","@type":"Person","name":"vyadh"},"datePublished":"2024-11-12T09:53:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/2593/codeql-action/issues/2593"}
| 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:a6432209-1a1f-95e5-8f75-2cda8d856182 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DE2E:9BDE:29EA4CD:393C53D:6A5057C1 |
| html-safe-nonce | 2e0fdf1c5af7d41b1fe11d4533022b7506e437e8f9a8641b67cf578f282d28b5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTJFOjlCREU6MjlFQTRDRDozOTNDNTNEOjZBNTA1N0MxIiwidmlzaXRvcl9pZCI6IjE0MDA5NTkzNzk4OTA3MjgzMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9167f5947110bf56582856dc1965ac501ddd1d9b8bda38c1767b7d0a7370019d |
| hovercard-subject-tag | issue:2651654005 |
| 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/2593/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6d159da2ab7391773fd05614db070a6a8f1ecd4a88604bbcd5de1f5ef05f9bcd/github/codeql-action/issues/2593 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6d159da2ab7391773fd05614db070a6a8f1ecd4a88604bbcd5de1f5ef05f9bcd/github/codeql-action/issues/2593 |
| og:image:alt | It looks like a recent change to enable zstd bundles on GHES has broken CodeQL scanning for anyone on Enterprise Cloud with self-hosted runners that are behind a proxy that is configured by the nor... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vyadh |
| hostname | github.com |
| expected-hostname | github.com |
| None | d6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb |
| 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 | 7ac0ad2f2c7e4b9056617355fd9e33e22b0c8df9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width