mirror of
https://github.com/github/codeql-action.git
synced 2025-12-14 03:20:11 +08:00
Compare commits
16 Commits
codeql-bun
...
v3.27.6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aa57810251 | ||
|
|
34e77b772d | ||
|
|
af49565b85 | ||
|
|
5659f01a9c | ||
|
|
5333ff3db7 | ||
|
|
e4fb28de52 | ||
|
|
3d3d628990 | ||
|
|
2eea97e7b9 | ||
|
|
f8e782af56 | ||
|
|
49b7c9791d | ||
|
|
743a855bb8 | ||
|
|
f09c1c0a94 | ||
|
|
40daece232 | ||
|
|
67b73eaba5 | ||
|
|
a6c8729a5d | ||
|
|
8f3b48727f |
@@ -4,7 +4,11 @@ See the [releases page](https://github.com/github/codeql-action/releases) for th
|
|||||||
|
|
||||||
Note that the only difference between `v2` and `v3` of the CodeQL Action is the node version they support, with `v3` running on node 20 while we continue to release `v2` to support running on node 16. For example `3.22.11` was the first `v3` release and is functionally identical to `2.22.11`. This approach ensures an easy way to track exactly which features are included in different versions, indicated by the minor and patch version numbers.
|
Note that the only difference between `v2` and `v3` of the CodeQL Action is the node version they support, with `v3` running on node 20 while we continue to release `v2` to support running on node 16. For example `3.22.11` was the first `v3` release and is functionally identical to `2.22.11`. This approach ensures an easy way to track exactly which features are included in different versions, indicated by the minor and patch version numbers.
|
||||||
|
|
||||||
## [UNRELEASED]
|
## 3.27.6 - 03 Dec 2024
|
||||||
|
|
||||||
|
- Update default CodeQL bundle version to 2.19.4. [#2626](https://github.com/github/codeql-action/pull/2626)
|
||||||
|
|
||||||
|
## 3.27.5 - 19 Nov 2024
|
||||||
|
|
||||||
No user facing changes.
|
No user facing changes.
|
||||||
|
|
||||||
|
|||||||
2
lib/analyze.js
generated
2
lib/analyze.js
generated
@@ -287,7 +287,7 @@ extensions:
|
|||||||
data:
|
data:
|
||||||
`;
|
`;
|
||||||
let data = ranges
|
let data = ranges
|
||||||
.map((range) => ` - ["${range[0]}", ${range[1]}, ${range[2]}]\n`)
|
.map((range) => ` - ["${range.path}", ${range.startLine}, ${range.endLine}]\n`)
|
||||||
.join("");
|
.join("");
|
||||||
if (!data) {
|
if (!data) {
|
||||||
// Ensure that the data extension is not empty, so that a pull request with
|
// Ensure that the data extension is not empty, so that a pull request with
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
|||||||
{ "maximumVersion": "3.15", "minimumVersion": "3.11" }
|
{ "maximumVersion": "3.16", "minimumVersion": "3.11" }
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"bundleVersion": "codeql-bundle-v2.19.3",
|
"bundleVersion": "codeql-bundle-v2.19.4",
|
||||||
"cliVersion": "2.19.3",
|
"cliVersion": "2.19.4",
|
||||||
"priorBundleVersion": "codeql-bundle-v2.19.2",
|
"priorBundleVersion": "codeql-bundle-v2.19.3",
|
||||||
"priorCliVersion": "2.19.2"
|
"priorCliVersion": "2.19.3"
|
||||||
}
|
}
|
||||||
|
|||||||
20
lib/start-proxy-action.js
generated
20
lib/start-proxy-action.js
generated
@@ -32,8 +32,8 @@ const actionsUtil = __importStar(require("./actions-util"));
|
|||||||
const logging_1 = require("./logging");
|
const logging_1 = require("./logging");
|
||||||
const util = __importStar(require("./util"));
|
const util = __importStar(require("./util"));
|
||||||
const UPDATEJOB_PROXY = "update-job-proxy";
|
const UPDATEJOB_PROXY = "update-job-proxy";
|
||||||
const UPDATEJOB_PROXY_VERSION = "v2.0.20240722180912";
|
const UPDATEJOB_PROXY_VERSION = "v2.0.20241023203727";
|
||||||
const UPDATEJOB_PROXY_URL = "https://github.com/github/codeql-action/releases/download/codeql-bundle-v2.18.1/update-job-proxy.tar.gz";
|
const UPDATEJOB_PROXY_URL_PREFIX = "https://github.com/github/codeql-action/releases/download/codeql-bundle-v2.18.1/";
|
||||||
const PROXY_USER = "proxy_user";
|
const PROXY_USER = "proxy_user";
|
||||||
const KEY_SIZE = 2048;
|
const KEY_SIZE = 2048;
|
||||||
const KEY_EXPIRY_YEARS = 2;
|
const KEY_EXPIRY_YEARS = 2;
|
||||||
@@ -196,13 +196,21 @@ function getProxyAuth() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
async function getProxyBinaryPath() {
|
async function getProxyBinaryPath() {
|
||||||
let proxyBin = toolcache.find(UPDATEJOB_PROXY, UPDATEJOB_PROXY_VERSION);
|
const proxyFileName = process.platform === "win32" ? `${UPDATEJOB_PROXY}.exe` : UPDATEJOB_PROXY;
|
||||||
|
const platform = process.platform === "win32"
|
||||||
|
? "win64"
|
||||||
|
: process.platform === "darwin"
|
||||||
|
? "osx64"
|
||||||
|
: "linux64";
|
||||||
|
const proxyPackage = `${UPDATEJOB_PROXY}-${platform}.tar.gz`;
|
||||||
|
const proxyURL = `${UPDATEJOB_PROXY_URL_PREFIX}${proxyPackage}`;
|
||||||
|
let proxyBin = toolcache.find(proxyFileName, UPDATEJOB_PROXY_VERSION);
|
||||||
if (!proxyBin) {
|
if (!proxyBin) {
|
||||||
const temp = await toolcache.downloadTool(UPDATEJOB_PROXY_URL);
|
const temp = await toolcache.downloadTool(proxyURL);
|
||||||
const extracted = await toolcache.extractTar(temp);
|
const extracted = await toolcache.extractTar(temp);
|
||||||
proxyBin = await toolcache.cacheDir(extracted, UPDATEJOB_PROXY, UPDATEJOB_PROXY_VERSION);
|
proxyBin = await toolcache.cacheDir(extracted, proxyFileName, UPDATEJOB_PROXY_VERSION);
|
||||||
}
|
}
|
||||||
proxyBin = path.join(proxyBin, UPDATEJOB_PROXY);
|
proxyBin = path.join(proxyBin, proxyFileName);
|
||||||
return proxyBin;
|
return proxyBin;
|
||||||
}
|
}
|
||||||
function credentialToStr(c) {
|
function credentialToStr(c) {
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
2
node_modules/.package-lock.json
generated
vendored
2
node_modules/.package-lock.json
generated
vendored
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "codeql",
|
"name": "codeql",
|
||||||
"version": "3.27.5",
|
"version": "3.27.6",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
|
|||||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "codeql",
|
"name": "codeql",
|
||||||
"version": "3.27.5",
|
"version": "3.27.6",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "codeql",
|
"name": "codeql",
|
||||||
"version": "3.27.5",
|
"version": "3.27.6",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/artifact": "^2.1.9",
|
"@actions/artifact": "^2.1.9",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "codeql",
|
"name": "codeql",
|
||||||
"version": "3.27.5",
|
"version": "3.27.6",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "CodeQL action",
|
"description": "CodeQL action",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -428,7 +428,10 @@ extensions:
|
|||||||
`;
|
`;
|
||||||
|
|
||||||
let data = ranges
|
let data = ranges
|
||||||
.map((range) => ` - ["${range[0]}", ${range[1]}, ${range[2]}]\n`)
|
.map(
|
||||||
|
(range) =>
|
||||||
|
` - ["${range.path}", ${range.startLine}, ${range.endLine}]\n`,
|
||||||
|
)
|
||||||
.join("");
|
.join("");
|
||||||
if (!data) {
|
if (!data) {
|
||||||
// Ensure that the data extension is not empty, so that a pull request with
|
// Ensure that the data extension is not empty, so that a pull request with
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"maximumVersion": "3.15", "minimumVersion": "3.11"}
|
{"maximumVersion": "3.16", "minimumVersion": "3.11"}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"bundleVersion": "codeql-bundle-v2.19.3",
|
"bundleVersion": "codeql-bundle-v2.19.4",
|
||||||
"cliVersion": "2.19.3",
|
"cliVersion": "2.19.4",
|
||||||
"priorBundleVersion": "codeql-bundle-v2.19.2",
|
"priorBundleVersion": "codeql-bundle-v2.19.3",
|
||||||
"priorCliVersion": "2.19.2"
|
"priorCliVersion": "2.19.3"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,9 +10,9 @@ import { getActionsLogger, Logger } from "./logging";
|
|||||||
import * as util from "./util";
|
import * as util from "./util";
|
||||||
|
|
||||||
const UPDATEJOB_PROXY = "update-job-proxy";
|
const UPDATEJOB_PROXY = "update-job-proxy";
|
||||||
const UPDATEJOB_PROXY_VERSION = "v2.0.20240722180912";
|
const UPDATEJOB_PROXY_VERSION = "v2.0.20241023203727";
|
||||||
const UPDATEJOB_PROXY_URL =
|
const UPDATEJOB_PROXY_URL_PREFIX =
|
||||||
"https://github.com/github/codeql-action/releases/download/codeql-bundle-v2.18.1/update-job-proxy.tar.gz";
|
"https://github.com/github/codeql-action/releases/download/codeql-bundle-v2.18.1/";
|
||||||
const PROXY_USER = "proxy_user";
|
const PROXY_USER = "proxy_user";
|
||||||
const KEY_SIZE = 2048;
|
const KEY_SIZE = 2048;
|
||||||
const KEY_EXPIRY_YEARS = 2;
|
const KEY_EXPIRY_YEARS = 2;
|
||||||
@@ -229,17 +229,28 @@ function getProxyAuth(): BasicAuthCredentials | undefined {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function getProxyBinaryPath(): Promise<string> {
|
async function getProxyBinaryPath(): Promise<string> {
|
||||||
let proxyBin = toolcache.find(UPDATEJOB_PROXY, UPDATEJOB_PROXY_VERSION);
|
const proxyFileName =
|
||||||
|
process.platform === "win32" ? `${UPDATEJOB_PROXY}.exe` : UPDATEJOB_PROXY;
|
||||||
|
const platform =
|
||||||
|
process.platform === "win32"
|
||||||
|
? "win64"
|
||||||
|
: process.platform === "darwin"
|
||||||
|
? "osx64"
|
||||||
|
: "linux64";
|
||||||
|
const proxyPackage = `${UPDATEJOB_PROXY}-${platform}.tar.gz`;
|
||||||
|
const proxyURL = `${UPDATEJOB_PROXY_URL_PREFIX}${proxyPackage}`;
|
||||||
|
|
||||||
|
let proxyBin = toolcache.find(proxyFileName, UPDATEJOB_PROXY_VERSION);
|
||||||
if (!proxyBin) {
|
if (!proxyBin) {
|
||||||
const temp = await toolcache.downloadTool(UPDATEJOB_PROXY_URL);
|
const temp = await toolcache.downloadTool(proxyURL);
|
||||||
const extracted = await toolcache.extractTar(temp);
|
const extracted = await toolcache.extractTar(temp);
|
||||||
proxyBin = await toolcache.cacheDir(
|
proxyBin = await toolcache.cacheDir(
|
||||||
extracted,
|
extracted,
|
||||||
UPDATEJOB_PROXY,
|
proxyFileName,
|
||||||
UPDATEJOB_PROXY_VERSION,
|
UPDATEJOB_PROXY_VERSION,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
proxyBin = path.join(proxyBin, UPDATEJOB_PROXY);
|
proxyBin = path.join(proxyBin, proxyFileName);
|
||||||
return proxyBin;
|
return proxyBin;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user