1
0
Fork 0
mirror of synced 2026-06-05 12:38:19 +00:00

Merge pull request #425 from step-security/rc-9

Update isGitHubHosted implementation
This commit is contained in:
Varun Sharma 2024-06-07 06:11:14 -07:00 committed by GitHub
commit 17d0e2bd7d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 5 deletions

4
dist/pre/index.js vendored
View file

@ -71620,8 +71620,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";
}