mirror of
https://github.com/step-security/harden-runner.git
synced 2026-06-06 06:17:07 +00:00
feat: support Ubicloud runners via UBICLOUD_RUNTIME_TOKEN
This commit is contained in:
parent
20cf305ff2
commit
7bcfa200ad
7 changed files with 11 additions and 7 deletions
3
dist/index.js
vendored
3
dist/index.js
vendored
|
|
@ -32062,7 +32062,8 @@ function isTLSEnabled(owner) {
|
|||
}
|
||||
function isGithubHosted() {
|
||||
const runnerEnvironment = process.env.RUNNER_ENVIRONMENT || "";
|
||||
return runnerEnvironment === "github-hosted";
|
||||
const hasUbicloudToken = !!process.env.UBICLOUD_RUNTIME_TOKEN;
|
||||
return runnerEnvironment === "github-hosted" || hasUbicloudToken;
|
||||
}
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@actions/github/lib/github.js
|
||||
|
|
|
|||
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
3
dist/post/index.js
vendored
3
dist/post/index.js
vendored
|
|
@ -32110,7 +32110,8 @@ function isTLSEnabled(owner) {
|
|||
}
|
||||
function isGithubHosted() {
|
||||
const runnerEnvironment = process.env.RUNNER_ENVIRONMENT || "";
|
||||
return runnerEnvironment === "github-hosted";
|
||||
const hasUbicloudToken = !!process.env.UBICLOUD_RUNTIME_TOKEN;
|
||||
return runnerEnvironment === "github-hosted" || hasUbicloudToken;
|
||||
}
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@actions/github/lib/github.js
|
||||
|
|
|
|||
2
dist/post/index.js.map
vendored
2
dist/post/index.js.map
vendored
File diff suppressed because one or more lines are too long
3
dist/pre/index.js
vendored
3
dist/pre/index.js
vendored
|
|
@ -85482,7 +85482,8 @@ function isTLSEnabled(owner) {
|
|||
}
|
||||
function isGithubHosted() {
|
||||
const runnerEnvironment = process.env.RUNNER_ENVIRONMENT || "";
|
||||
return runnerEnvironment === "github-hosted";
|
||||
const hasUbicloudToken = !!process.env.UBICLOUD_RUNTIME_TOKEN;
|
||||
return runnerEnvironment === "github-hosted" || hasUbicloudToken;
|
||||
}
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@actions/tool-cache/lib/tool-cache.js
|
||||
|
|
|
|||
2
dist/pre/index.js.map
vendored
2
dist/pre/index.js.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -25,5 +25,6 @@ export async function isTLSEnabled(owner: string): Promise<boolean> {
|
|||
|
||||
export function isGithubHosted() {
|
||||
const runnerEnvironment = process.env.RUNNER_ENVIRONMENT || "";
|
||||
return runnerEnvironment === "github-hosted";
|
||||
const hasUbicloudToken = !!process.env.UBICLOUD_RUNTIME_TOKEN;
|
||||
return runnerEnvironment === "github-hosted" || hasUbicloudToken;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue