Skip to content

Commit 6e54559

Browse files
authored
Merge pull request #2743 from github/update-v3.28.7-797fb30ed
Merge main into releases/v3
2 parents 17a820b + cd34602 commit 6e54559

11 files changed

+37
-38
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
See the [releases page](https://github.com/github/codeql-action/releases) for the relevant changes to the CodeQL CLI and language packs.
44

5+
## 3.28.7 - 29 Jan 2025
6+
7+
No user facing changes.
8+
59
## 3.28.6 - 27 Jan 2025
610

711
- Re-enable debug artifact upload for CLI versions 2.20.3 or greater. [#2726](https://github.com/github/codeql-action/pull/2726)

lib/analyze-action.js

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/analyze-action.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/start-proxy-action.js

+4-14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/start-proxy-action.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codeql",
3-
"version": "3.28.6",
3+
"version": "3.28.7",
44
"private": true,
55
"description": "CodeQL action",
66
"scripts": {

src/analyze-action.ts

+9
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,15 @@ async function run() {
202202
let didUploadTrapCaches = false;
203203
util.initializeEnvironment(actionsUtil.getActionVersion());
204204

205+
// Unset the CODEQL_PROXY_* environment variables, as they are not needed
206+
// and can cause issues with the CodeQL CLI
207+
// Check for CODEQL_PROXY_HOST: and if it is empty but set, unset it
208+
if (process.env.CODEQL_PROXY_HOST === "") {
209+
delete process.env.CODEQL_PROXY_HOST;
210+
delete process.env.CODEQL_PROXY_PORT;
211+
delete process.env.CODEQL_PROXY_CA_CERTIFICATE;
212+
}
213+
205214
// Make inputs accessible in the `post` step, details at
206215
// https://github.com/github/codeql-action/issues/2553
207216
actionsUtil.persistInputs();

src/start-proxy-action.ts

+6-15
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ const UPDATEJOB_PROXY = "update-job-proxy";
1414
const UPDATEJOB_PROXY_VERSION = "v2.0.20241023203727";
1515
const UPDATEJOB_PROXY_URL_PREFIX =
1616
"https://github.com/github/codeql-action/releases/download/codeql-bundle-v2.18.1/";
17-
const PROXY_USER = "proxy_user";
1817
const KEY_SIZE = 2048;
1918
const KEY_EXPIRY_YEARS = 2;
2019

@@ -100,19 +99,23 @@ async function runWrapper() {
10099
actionsUtil.getOptionalInput("registries_credentials"),
101100
actionsUtil.getOptionalInput("language"),
102101
);
102+
103+
if (credentials.length === 0) {
104+
logger.info("No credentials found, skipping proxy setup.");
105+
return;
106+
}
107+
103108
logger.info(
104109
`Credentials loaded for the following registries:\n ${credentials
105110
.map((c) => credentialToStr(c))
106111
.join("\n")}`,
107112
);
108113

109114
const ca = generateCertificateAuthority();
110-
const proxyAuth = getProxyAuth();
111115

112116
const proxyConfig: ProxyConfig = {
113117
all_credentials: credentials,
114118
ca,
115-
proxy_auth: proxyAuth,
116119
};
117120

118121
// Start the Proxy
@@ -181,18 +184,6 @@ async function startProxy(
181184
}
182185
}
183186

184-
// getProxyAuth returns the authentication information for the proxy itself.
185-
function getProxyAuth(): BasicAuthCredentials | undefined {
186-
const proxy_password = actionsUtil.getOptionalInput("proxy_password");
187-
if (proxy_password) {
188-
return {
189-
username: PROXY_USER,
190-
password: proxy_password,
191-
};
192-
}
193-
return;
194-
}
195-
196187
async function getProxyBinaryPath(): Promise<string> {
197188
const proxyFileName =
198189
process.platform === "win32" ? `${UPDATEJOB_PROXY}.exe` : UPDATEJOB_PROXY;

start-proxy/action.yml

-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ inputs:
99
registries_credentials:
1010
description: Base64 encoded JSON configuration for the URLs and credentials of the package registries
1111
required: false
12-
proxy_password:
13-
required: false
14-
description: The password of the proxy
1512
token:
1613
description: GitHub token to use for authenticating with this instance of GitHub, used to upload debug artifacts.
1714
default: ${{ github.token }}

0 commit comments

Comments
 (0)