FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Provide `Authorization` header when downloading `update-job-proxy` by mbg · Pull Request #3146 · github/codeql-action · GitHub

Provide Authorization header when downloading update-job-proxy - #3146

Merged
mbg merged 4 commits into
mainfrom
mbg/start-proxy/authenticate
Sep 24, 2025
Merged

Provide Authorization header when downloading update-job-proxy#3146
mbg merged 4 commits into
mainfrom
mbg/start-proxy/authenticate

Conversation

mbg commented Sep 24, 2025

Copy link
Copy Markdown
Member

This changes the start-proxy action to provide an Authorization header for the toolcache.downloadTool call under the same circumstances where we provide one for the toolcache.downloadTool call when downloading the CLI bundle.

Risk assessment

For internal use only. Please select the risk level of this change:

  • Low risk: Changes are fully under feature flags, or have been fully tested and validated in pre-production environments and are highly observable, or are documentation or test only.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Consider adding a changelog entry for this change.
  • Confirm the readme and docs have been updated if necessary.

mbg requested a review from henrymercer September 24, 2025 11:43
mbg requested a review from a team as a code owner September 24, 2025 11:43
Copilot AI review requested due to automatic review settings September 24, 2025 11:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Pull Request Overview

This PR refactors the authorization header logic for downloading tools from GitHub by extracting common code into a reusable function and applying consistent authorization patterns to both CLI bundle and update-job-proxy downloads.

  • Extracts authorization header logic into getAuthorizationHeaderFor function in api-client.ts
  • Updates the start-proxy action to provide authorization headers when downloading update-job-proxy
  • Refactors existing CodeQL CLI download logic to use the new common function

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.

File Description
src/api-client.ts Adds new getAuthorizationHeaderFor function to centralize authorization logic
src/start-proxy-action.ts Updates proxy binary download to use authorization headers consistently
src/setup-codeql.ts Refactors to use the new centralized authorization function
lib/*.js Generated JavaScript files reflecting the TypeScript changes

esbena previously approved these changes Sep 24, 2025

esbena left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM, with some minor doc/log thoughts.

Comment thread src/api-client.ts Outdated
Comment thread src/start-proxy-action.ts Outdated
esbena previously approved these changes Sep 24, 2025
mbg enabled auto-merge September 24, 2025 18:09
mbg merged commit 39842d8 into main Sep 24, 2025
299 checks passed
mbg deleted the mbg/start-proxy/authenticate branch September 24, 2025 18:09
github-actions Bot mentioned this pull request Sep 25, 2025
8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL