Skip to content

Commit bb112d0

Browse files
committed
Update isGitHubHosted implementation
1 parent f4f3f44 commit bb112d0

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

dist/pre/index.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/pre/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/tls-inspect.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ export async function isTLSEnabled(owner: string): Promise<boolean> {
2424
}
2525

2626
export function isGithubHosted() {
27-
const runnerName = process.env.RUNNER_NAME || "";
28-
return runnerName.startsWith("GitHub Actions");
27+
const runnerEnvironment = process.env.RUNNER_ENVIRONMENT || "";
28+
return runnerEnvironment === "github-hosted";
2929
}

0 commit comments

Comments
 (0)