mirror of
https://github.com/step-security/harden-runner.git
synced 2026-06-05 19:53:33 +00:00
feat: use hostname as correlation_id for Ubicloud runners
This commit is contained in:
parent
7bcfa200ad
commit
6ae58d6818
3 changed files with 8 additions and 4 deletions
4
dist/pre/index.js
vendored
4
dist/pre/index.js
vendored
|
|
@ -85626,7 +85626,9 @@ var setup_awaiter = (undefined && undefined.__awaiter) || function (thisArg, _ar
|
|||
console.log(CONTAINER_MESSAGE);
|
||||
return;
|
||||
}
|
||||
var correlation_id = v4();
|
||||
var correlation_id = process.env.UBICLOUD_RUNTIME_TOKEN
|
||||
? (0,external_os_.hostname)()
|
||||
: v4();
|
||||
var api_url = configs_STEPSECURITY_API_URL;
|
||||
var web_url = STEPSECURITY_WEB_URL;
|
||||
let confg = {
|
||||
|
|
|
|||
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
|
|
@ -7,7 +7,7 @@ import { v4 as uuidv4 } from "uuid";
|
|||
import * as common from "./common";
|
||||
import isDocker from "is-docker";
|
||||
import { context } from "@actions/github";
|
||||
import { EOL } from "os";
|
||||
import { EOL, hostname } from "os";
|
||||
import {
|
||||
ArtifactCacheEntry,
|
||||
cacheKey,
|
||||
|
|
@ -54,7 +54,9 @@ interface MonitorResponse {
|
|||
return;
|
||||
}
|
||||
|
||||
var correlation_id = uuidv4();
|
||||
var correlation_id = process.env.UBICLOUD_RUNTIME_TOKEN
|
||||
? hostname()
|
||||
: uuidv4();
|
||||
var api_url = STEPSECURITY_API_URL;
|
||||
var web_url = STEPSECURITY_WEB_URL;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue