GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Enabling zstd bundles for GHES seems to have broken proxy support on Enterprise Cloud with self-hosted runners · Issue #2593 · github/codeql-action

Enabling zstd bundles for GHES seems to have broken proxy support on Enterprise Cloud with self-hosted runners #2593

New issue
Copy link
New issue
Copy link
Closed
#2599
Closed
Enabling zstd bundles for GHES seems to have broken proxy support on Enterprise Cloud with self-hosted runners#2593
#2599
Copy link
Assignees
NlightNFotis
Labels
bugSomething isn't working

Description

@vyadh
vyadh
opened on Nov 12, 2024
Issue body actions

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 did some investigation to understand why, and it appears that in the commit 33f2dc5 the code path used now always uses the streaming version as the feature flag that previously prevented it has been removed.

The 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.

Specifically, in the working v3.27.0 version, the feature flag checked here:
https://github.com/github/codeql-action/blob/v3.27.0/lib/tools-download.js#L59
wasn't triggered and therefore it used this code path:
https://github.com/github/codeql-action/blob/v3.27.0/lib/tools-download.js#L73
which downloads via the tool-cache:
https://github.com/actions/toolkit/blob/main/packages/tool-cache/src/tool-cache.ts
and this respects the system proxy variables as you can see in:
https://github.com/actions/toolkit/blob/main/packages/http-client/src/proxy.ts

Unfortunately, now the feature flag is removed in v3.27.1:
https://github.com/github/codeql-action/blob/v3.27.1/lib/tools-download.js#L62
it always uses the streaming method, but this does not use the toolkit http-client that includes system proxy support but instead appears to use the follow_directs library here:
https://github.com/github/codeql-action/blob/v3.27.1/lib/tools-download.js#L62
which appears to be a small wrapper over the basic node fetch functionality and does not support proxies as far as I can make out.

This 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.

As 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?

Reacted by a-f and Pavel Smalenski

Activity

  1. aeisenberg
    added
    bugSomething isn't working
    on Nov 12, 2024
  2. aeisenberg commented on Nov 12, 2024

    @aeisenberg
    aeisenberg
    on Nov 12, 2024
    Contributor
    More actions

    Thanks for reporting this issue and for doing a deep dive into the cause of this. We'll take a look and I hope to have a fix shortly.

    Reacted by Vyadh
  3. aeisenberg
    assigned
    NlightNFotis
    on Nov 12, 2024
  4. NlightNFotis
    closed this as completedin #2599on Nov 12, 2024
  5. aeisenberg commented on Nov 12, 2024

    @aeisenberg
    aeisenberg
    on Nov 12, 2024
    Contributor
    More actions

    @NlightNFotis has pushed a fix for this and made a new release. Would you be able to verify the fix by updating to the latest version of the codeql action?

  6. i-cannot-figure-out-a-good-nick commented on Nov 13, 2024

    @i-cannot-figure-out-a-good-nick
    i-cannot-figure-out-a-good-nick
    on Nov 13, 2024
    More actions

    Thanks for the prompt fix!

    Reacted by Fotis Koutoulakis and Andrew Eisenberg
  7. vyadh commented on Nov 13, 2024

    @vyadh
    vyadh
    on Nov 13, 2024
    Author
    More actions

    @aeisenberg @NlightNFotis I can confirm it is now fixed for us. Hugely appreciate the super quick turn around on this. Thanks so much!

    Reacted by Fotis Koutoulakis and Andrew Eisenberg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @NlightNFotis
    NlightNFotis

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.