Skip to content

Commit

Permalink
Merge pull request #425 from step-security/rc-9
Browse files Browse the repository at this point in the history
Update isGitHubHosted implementation
  • Loading branch information
varunsh-coder committed Jun 7, 2024
2 parents f4f3f44 + bb112d0 commit 17d0e2b
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 17d0e2b

Please sign in to comment.