Skip to content

Commit

Permalink
Update isGitHubHosted implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
varunsh-coder committed Jun 4, 2024
1 parent f4f3f44 commit bb112d0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/pre/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/pre/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/tls-inspect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}

0 comments on commit bb112d0

Please sign in to comment.