1
0
Fork 0
mirror of synced 2026-06-05 16:48:19 +00:00

Compare commits

..

1 commit

Author SHA1 Message Date
Varun Sharma
b18f021102
Update agent to v1.8.4 2026-05-03 20:32:43 -07:00
5 changed files with 15 additions and 19 deletions

15
dist/pre/index.js vendored
View file

@ -85456,15 +85456,15 @@ var external_crypto_ = __nccwpck_require__(6982);
const CHECKSUMS = {
tls: {
amd64: "d58a9c1c5245155ce4c71507a61e213a29925a7c39c0d20bfd00bef0d281bdbb",
arm64: "084fa95e74d17321dd1c37c93abeb8577e53ddf5266410e19f52aa79a02ae33e",
amd64: "190934753f8b8b1c645217d79cf63fd393bd213f14f4ab9cf5f7ccf3fc9d44ee",
arm64: "15c6436a12906a4e9c249dc167a36bb584b8886b1597e7baf57ac7bdc7668658",
},
non_tls: {
amd64: "e38de61e1afd98dd339bb9acce4996183875d482be1638fb198ab02b3e25bbef", // v0.16.0
},
bravo: {
amd64: "495f607a891d89f12214849301f247bdca565afe67deb170fe7e5d6d361852ca",
arm64: "f96f66ab946097aae1fc887e12fe1cefcc5d510bce179221c7185374e4adf538",
amd64: "d1c008979725fed6e003a2ff66461700ebe68a9fb0c36f19e5d20276d1cd3b13",
arm64: "e4daa0696b64b4ac8c8e7dad6f6d4621947cddacf70abcbb64f89645457ac391",
},
darwin: "fe26a1f6af4afe9f1a854d8633832f5d18ab542827003cae445b3a64021d612c",
windows: {
@ -85537,7 +85537,7 @@ function installAgent(isTLS, configStr) {
encoding: "utf8",
});
if (isTLS) {
downloadPath = yield tool_cache.downloadTool(`https://github.com/step-security/agent-ebpf/releases/download/v1.8.6/harden-runner_1.8.6_linux_${variant}.tar.gz`, undefined, auth);
downloadPath = yield tool_cache.downloadTool(`https://github.com/step-security/agent-ebpf/releases/download/v1.8.4/harden-runner_1.8.4_linux_${variant}.tar.gz`, undefined, auth);
}
else {
if (variant === "arm64") {
@ -85572,7 +85572,7 @@ function installAgentBravo(configStr) {
const token = lib_core.getInput("token", { required: true });
const auth = `token ${token}`;
const variant = process.arch === "x64" ? "amd64" : "arm64";
const downloadPath = yield tool_cache.downloadTool(`https://github.com/step-security/agent-ebpf/releases/download/v1.8.6/harden-runner-bravo_1.8.6_linux_${variant}.tar.gz`, undefined, auth);
const downloadPath = yield tool_cache.downloadTool(`https://github.com/step-security/agent-ebpf/releases/download/v1.8.4/harden-runner-bravo_1.8.4_linux_${variant}.tar.gz`, undefined, auth);
if (!verifyChecksum(downloadPath, true, variant, "linux", "bravo")) {
return false;
}
@ -85848,8 +85848,7 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
if (confg.use_policy_store) {
console.log(`Fetching policy from policy store`);
if (confg.api_key === "") {
lib_core.warning("api-key is not set while use-policy-store is true. Defaulting to audit mode.");
confg.egress_policy = "audit";
lib_core.setFailed("api-key is required when use-policy-store is set to true");
}
else {
try {

File diff suppressed because one or more lines are too long

View file

@ -4,15 +4,15 @@ import * as fs from "fs";
export const CHECKSUMS = {
tls: {
amd64: "d58a9c1c5245155ce4c71507a61e213a29925a7c39c0d20bfd00bef0d281bdbb", // v1.8.6
arm64: "084fa95e74d17321dd1c37c93abeb8577e53ddf5266410e19f52aa79a02ae33e",
amd64: "190934753f8b8b1c645217d79cf63fd393bd213f14f4ab9cf5f7ccf3fc9d44ee", // v1.8.4
arm64: "15c6436a12906a4e9c249dc167a36bb584b8886b1597e7baf57ac7bdc7668658",
},
non_tls: {
amd64: "e38de61e1afd98dd339bb9acce4996183875d482be1638fb198ab02b3e25bbef", // v0.16.0
},
bravo: {
amd64: "495f607a891d89f12214849301f247bdca565afe67deb170fe7e5d6d361852ca", // v1.8.6
arm64: "f96f66ab946097aae1fc887e12fe1cefcc5d510bce179221c7185374e4adf538",
amd64: "d1c008979725fed6e003a2ff66461700ebe68a9fb0c36f19e5d20276d1cd3b13", // v1.8.4
arm64: "e4daa0696b64b4ac8c8e7dad6f6d4621947cddacf70abcbb64f89645457ac391",
},
darwin: "fe26a1f6af4afe9f1a854d8633832f5d18ab542827003cae445b3a64021d612c", // v0.0.5
windows: {

View file

@ -26,7 +26,7 @@ export async function installAgent(
if (isTLS) {
downloadPath = await tc.downloadTool(
`https://github.com/step-security/agent-ebpf/releases/download/v1.8.6/harden-runner_1.8.6_linux_${variant}.tar.gz`,
`https://github.com/step-security/agent-ebpf/releases/download/v1.8.4/harden-runner_1.8.4_linux_${variant}.tar.gz`,
undefined,
auth
);
@ -76,7 +76,7 @@ export async function installAgentBravo(configStr: string): Promise<boolean> {
const variant = process.arch === "x64" ? "amd64" : "arm64";
const downloadPath = await tc.downloadTool(
`https://github.com/step-security/agent-ebpf/releases/download/v1.8.6/harden-runner-bravo_1.8.6_linux_${variant}.tar.gz`,
`https://github.com/step-security/agent-ebpf/releases/download/v1.8.4/harden-runner-bravo_1.8.4_linux_${variant}.tar.gz`,
undefined,
auth
);

View file

@ -107,10 +107,7 @@ interface MonitorResponse {
if (confg.use_policy_store) {
console.log(`Fetching policy from policy store`);
if (confg.api_key === "") {
core.warning(
"api-key is not set while use-policy-store is true. Defaulting to audit mode."
);
confg.egress_policy = "audit";
core.setFailed("api-key is required when use-policy-store is set to true");
} else {
try {
const repoName = (process.env["GITHUB_REPOSITORY"] || "").split("/")[1] || "";