You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
31883
31928
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
@@ -31930,8 +31975,9 @@ function addSummary() {
31930
31975
}
31931
31976
let needsSubscription = false;
31932
31977
try {
31933
-
let data = fs.readFileSync("/home/agent/annotation.log", "utf8");
31934
-
if (data.includes("StepSecurity Harden Runner is disabled")) {
31978
+
let data = getAnnotationLogs(process.platform);
31979
+
if (data !== undefined &&
31980
+
data.includes("StepSecurity Harden Runner is disabled")) {
31935
31981
needsSubscription = true;
31936
31982
}
31937
31983
}
@@ -31978,7 +32024,7 @@ function addSummary() {
31978
32024
}
31979
32025
const STATUS_HARDEN_RUNNER_UNAVAILABLE = "409";
31980
32026
const CONTAINER_MESSAGE = "This job is running in a container. Such jobs can be monitored by installing Harden Runner in a custom VM image for GitHub-hosted runners.";
31981
-
const UBUNTU_MESSAGE = "This job is not running in a GitHub Actions Hosted Runner Ubuntu VM. Harden Runner is only supported on Ubuntu VM. This job will not be monitored.";
32027
+
const UNSUPPORTED_RUNNER_MESSAGE = "This job is not running in a GitHub Actions Hosted Runner. Harden Runner is only supported on GitHub-hosted runners (Ubuntu, Windows, and macOS). This job will not be monitored.";
31982
32028
const SELF_HOSTED_RUNNER_MESSAGE = "This job is running on a self-hosted runner.";
31983
32029
const HARDEN_RUNNER_UNAVAILABLE_MESSAGE = "Sorry, we are currently experiencing issues with the Harden Runner installation process. It is currently unavailable.";
31984
32030
const ARC_RUNNER_MESSAGE = "Workflow is currently being executed in ARC based runner.";
@@ -32083,6 +32129,7 @@ var src_awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argu
0 commit comments