Skip to content

Commit 46b06ce

Browse files
Merge pull request #711 from step-security/rc-46
v2.23.0
2 parents dc2769a + f82eb4b commit 46b06ce

10 files changed

Lines changed: 34 additions & 22 deletions

File tree

‎dist/index.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31963,6 +31963,8 @@ function detectThirdPartyRunnerProvider() {
3196331963
return "warp";
3196431964
if (runnerName.startsWith("blacksmith-"))
3196531965
return "blacksmith";
31966+
if (runnerName.startsWith("avrea-exe-"))
31967+
return "avrea";
3196631968
return null;
3196731969
}
3196831970
function utils_getAnnotationLogs(platform) {

‎dist/index.js.map‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/post/index.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31969,6 +31969,8 @@ function detectThirdPartyRunnerProvider() {
3196931969
return "warp";
3197031970
if (runnerName.startsWith("blacksmith-"))
3197131971
return "blacksmith";
31972+
if (runnerName.startsWith("avrea-exe-"))
31973+
return "avrea";
3197231974
return null;
3197331975
}
3197431976
function getAnnotationLogs(platform) {

‎dist/post/index.js.map‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/pre/index.js‎

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -85161,6 +85161,8 @@ function detectThirdPartyRunnerProvider() {
8516185161
return "warp";
8516285162
if (runnerName.startsWith("blacksmith-"))
8516385163
return "blacksmith";
85164+
if (runnerName.startsWith("avrea-exe-"))
85165+
return "avrea";
8516485166
return null;
8516585167
}
8516685168
function utils_getAnnotationLogs(platform) {
@@ -85623,16 +85625,16 @@ var external_crypto_ = __nccwpck_require__(6982);
8562385625

8562485626
const CHECKSUMS = {
8562585627
tls: {
85626-
amd64: "66f309e8fa41aa6b96a5e740afccefa3b89e90fb62180cdbe73948f3bc068f57", // v1.9.4
85627-
arm64: "15ff7e107988333f22eb93f33ca35630c48de3fd969938bc72e0e10e7808aab9", // v1.9.4
85628+
amd64: "811c33347d8152cf12cbcc665f571293e6af47ecf151134da9fb5195909b8a56", // v1.9.5
85629+
arm64: "6738ceea3aa817670aac8085b6e82095b37d81ce76e4cc5b0ac73bae4abea2ff", // v1.9.5
8562885630
},
8562985631
non_tls: {
85630-
amd64: "e0faa2687554ebd5629595bcd5531360781abe3e2746ef8ce5a030961a3acab0", // v0.17.0
85631-
arm64: "6b5739247c06179a280f2f9548dd3337d839d3cc83284b75ddbdd593ac1ea0d6", // v0.17.0
85632+
amd64: "baec749d7477e37c4410bbe1c5a1669ba72de18a49d3d013e817a9ae95d122e5", // v0.18.0
85633+
arm64: "ec783c4c6a04e7d60788596c71aa9f8fd19fef20985dc2bd72ce2aa7e513649f", // v0.18.0
8563285634
},
8563385635
bravo: {
85634-
amd64: "c2baada041a36be6179c1467f04fd40d429e9fb0523752426f8290d03a087f51", // v1.9.4
85635-
arm64: "d903b31dcc563f0d21c85cdceae9161c97da6a5b4cfa7637d8480cd03885ecc1", // v1.9.4
85636+
amd64: "8fcae88b4f127371f943a44e020ca69c00a60db3fc92a582e9890ceb533f25a9", // v1.9.5
85637+
arm64: "8af18952c1cc7f9a18c4f337df2c3fd542c5180e94abaa666ee74c8c4956597c", // v1.9.5
8563685638
},
8563785639
darwin: "0e0964799818e8a63cf785bb00d70c3b1eeb9d0d0bfbcace364be7a469ee13aa", // v0.0.9
8563885640
windows: {
@@ -85705,10 +85707,10 @@ function installAgent(isTLS, configStr) {
8570585707
encoding: "utf8",
8570685708
});
8570785709
if (isTLS) {
85708-
downloadPath = yield tool_cache.downloadTool(`https://github.com/step-security/agent-ebpf/releases/download/v1.9.4/harden-runner_1.9.4_linux_${variant}.tar.gz`, undefined, auth);
85710+
downloadPath = yield tool_cache.downloadTool(`https://github.com/step-security/agent-ebpf/releases/download/v1.9.5/harden-runner_1.9.5_linux_${variant}.tar.gz`, undefined, auth);
8570985711
}
8571085712
else {
85711-
downloadPath = yield tool_cache.downloadTool(`https://github.com/step-security/agent/releases/download/v0.17.0/agent_0.17.0_linux_${variant}.tar.gz`, undefined, auth);
85713+
downloadPath = yield tool_cache.downloadTool(`https://github.com/step-security/agent/releases/download/v0.18.0/agent_0.18.0_linux_${variant}.tar.gz`, undefined, auth);
8571285714
}
8571385715
if (!verifyChecksum(downloadPath, isTLS, variant, "linux")) {
8571485716
return false;
@@ -85736,7 +85738,7 @@ function installAgentBravo(configStr_1) {
8573685738
const token = lib_core.getInput("token", { required: true });
8573785739
const auth = `token ${token}`;
8573885740
const variant = process.arch === "x64" ? "amd64" : "arm64";
85739-
const downloadPath = yield tool_cache.downloadTool(`https://github.com/step-security/agent-ebpf/releases/download/v1.9.4/harden-runner-bravo_1.9.4_linux_${variant}.tar.gz`, undefined, auth);
85741+
const downloadPath = yield tool_cache.downloadTool(`https://github.com/step-security/agent-ebpf/releases/download/v1.9.5/harden-runner-bravo_1.9.5_linux_${variant}.tar.gz`, undefined, auth);
8574085742
if (!verifyChecksum(downloadPath, true, variant, "linux", "bravo")) {
8574185743
return false;
8574285744
}

‎dist/pre/index.js.map‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/checksum.ts‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ import * as fs from "fs";
44

55
export const CHECKSUMS = {
66
tls: {
7-
amd64: "66f309e8fa41aa6b96a5e740afccefa3b89e90fb62180cdbe73948f3bc068f57", // v1.9.4
8-
arm64: "15ff7e107988333f22eb93f33ca35630c48de3fd969938bc72e0e10e7808aab9", // v1.9.4
7+
amd64: "811c33347d8152cf12cbcc665f571293e6af47ecf151134da9fb5195909b8a56", // v1.9.5
8+
arm64: "6738ceea3aa817670aac8085b6e82095b37d81ce76e4cc5b0ac73bae4abea2ff", // v1.9.5
99
},
1010
non_tls: {
11-
amd64: "e0faa2687554ebd5629595bcd5531360781abe3e2746ef8ce5a030961a3acab0", // v0.17.0
12-
arm64: "6b5739247c06179a280f2f9548dd3337d839d3cc83284b75ddbdd593ac1ea0d6", // v0.17.0
11+
amd64: "baec749d7477e37c4410bbe1c5a1669ba72de18a49d3d013e817a9ae95d122e5", // v0.18.0
12+
arm64: "ec783c4c6a04e7d60788596c71aa9f8fd19fef20985dc2bd72ce2aa7e513649f", // v0.18.0
1313
},
1414
bravo: {
15-
amd64: "c2baada041a36be6179c1467f04fd40d429e9fb0523752426f8290d03a087f51", // v1.9.4
16-
arm64: "d903b31dcc563f0d21c85cdceae9161c97da6a5b4cfa7637d8480cd03885ecc1", // v1.9.4
15+
amd64: "8fcae88b4f127371f943a44e020ca69c00a60db3fc92a582e9890ceb533f25a9", // v1.9.5
16+
arm64: "8af18952c1cc7f9a18c4f337df2c3fd542c5180e94abaa666ee74c8c4956597c", // v1.9.5
1717
},
1818
darwin: "0e0964799818e8a63cf785bb00d70c3b1eeb9d0d0bfbcace364be7a469ee13aa", // v0.0.9
1919
windows: {

‎src/install-agent.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ export async function installAgent(
2626

2727
if (isTLS) {
2828
downloadPath = await tc.downloadTool(
29-
`https://github.com/step-security/agent-ebpf/releases/download/v1.9.4/harden-runner_1.9.4_linux_${variant}.tar.gz`,
29+
`https://github.com/step-security/agent-ebpf/releases/download/v1.9.5/harden-runner_1.9.5_linux_${variant}.tar.gz`,
3030
undefined,
3131
auth
3232
);
3333
} else {
3434
downloadPath = await tc.downloadTool(
35-
`https://github.com/step-security/agent/releases/download/v0.17.0/agent_0.17.0_linux_${variant}.tar.gz`,
35+
`https://github.com/step-security/agent/releases/download/v0.18.0/agent_0.18.0_linux_${variant}.tar.gz`,
3636
undefined,
3737
auth
3838
);
@@ -75,7 +75,7 @@ export async function installAgentBravo(
7575

7676
const variant = process.arch === "x64" ? "amd64" : "arm64";
7777
const downloadPath = await tc.downloadTool(
78-
`https://github.com/step-security/agent-ebpf/releases/download/v1.9.4/harden-runner-bravo_1.9.4_linux_${variant}.tar.gz`,
78+
`https://github.com/step-security/agent-ebpf/releases/download/v1.9.5/harden-runner-bravo_1.9.5_linux_${variant}.tar.gz`,
7979
undefined,
8080
auth
8181
);

‎src/utils.test.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,11 @@ describe("detectThirdPartyRunnerProvider", () => {
177177
expect(detectThirdPartyRunnerProvider()).toBe("blacksmith");
178178
});
179179

180+
test("returns avrea for RUNNER_NAME prefix avrea-exe-", () => {
181+
process.env.RUNNER_NAME = "avrea-exe-01kpj";
182+
expect(detectThirdPartyRunnerProvider()).toBe("avrea");
183+
});
184+
180185
test("returns null when no env vars match", () => {
181186
expect(detectThirdPartyRunnerProvider()).toBeNull();
182187
});

‎src/utils.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export function shouldDeployAgentOnSelfHosted(
8181
return deployOnSelfHostedVm && !isContainer && !agentAlreadyInstalled;
8282
}
8383

84-
export type ThirdPartyRunnerProvider = "depot" | "namespace" | "warp" | "blacksmith" | "bitrise" | "codebuild";
84+
export type ThirdPartyRunnerProvider = "depot" | "namespace" | "warp" | "blacksmith" | "avrea" | "bitrise" | "codebuild";
8585

8686
export function detectThirdPartyRunnerProvider(): ThirdPartyRunnerProvider | null {
8787
if (process.env["DEPOT_RUNNER"] === "1") return "depot";
@@ -91,6 +91,7 @@ export function detectThirdPartyRunnerProvider(): ThirdPartyRunnerProvider | nul
9191
const runnerName = process.env["RUNNER_NAME"] ?? "";
9292
if (runnerName.startsWith("warp-")) return "warp";
9393
if (runnerName.startsWith("blacksmith-")) return "blacksmith";
94+
if (runnerName.startsWith("avrea-exe-")) return "avrea";
9495
return null;
9596
}
9697

0 commit comments

Comments
 (0)