1
0
Fork 0
mirror of synced 2026-06-05 11:08:19 +00:00

Improve detection of hosted runners

This commit is contained in:
Varun Sharma 2024-06-05 07:33:45 -07:00
commit f1db3319d7
No known key found for this signature in database
GPG key ID: CE30C1F427CE6272
3 changed files with 5 additions and 5 deletions

4
dist/pre/index.js vendored
View file

@ -71619,8 +71619,8 @@ function isTLSEnabled(owner) {
});
}
function isGithubHosted() {
const runnerName = process.env.RUNNER_NAME || "";
return runnerName.startsWith("GitHub Actions");
const runnerEnvironment = process.env.RUNNER_ENVIRONMENT || "";
return runnerEnvironment === "github-hosted";
}
;// CONCATENATED MODULE: ./src/setup.ts

File diff suppressed because one or more lines are too long

View file

@ -24,6 +24,6 @@ export async function isTLSEnabled(owner: string): Promise<boolean> {
}
export function isGithubHosted() {
const runnerName = process.env.RUNNER_NAME || "";
return runnerName.startsWith("GitHub Actions");
const runnerEnvironment = process.env.RUNNER_ENVIRONMENT || "";
return runnerEnvironment === "github-hosted";
}