feat: support Ubicloud runners via UBICLOUD_RUNTIME_TOKEN

This commit is contained in:
Varun Sharma 2025-12-10 09:01:28 -08:00
commit 7bcfa200ad
7 changed files with 11 additions and 7 deletions

3
dist/index.js vendored
View file

@ -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

File diff suppressed because one or more lines are too long

3
dist/post/index.js vendored
View file

@ -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

File diff suppressed because one or more lines are too long

3
dist/pre/index.js vendored
View file

@ -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

File diff suppressed because one or more lines are too long

View file

@ -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;
}