mirror of
https://github.com/step-security/harden-runner.git
synced 2026-06-07 16:47:07 +00:00
forward repo, run_id, private to bravo agent config
Without these the bravo agent can't attribute detection events to the correct workflow run, so insights don't get generated on the server side. Matches the set of fields propagated on the original spread-based bravo config.
This commit is contained in:
parent
20c37511ec
commit
fd9b4982b0
3 changed files with 7 additions and 1 deletions
3
dist/pre/index.js
vendored
3
dist/pre/index.js
vendored
|
|
@ -86183,6 +86183,8 @@ function installAgentForBravo(owner, confg) {
|
|||
}
|
||||
const bravoConfig = {
|
||||
customer: owner,
|
||||
repo: confg.repo,
|
||||
run_id: confg.run_id,
|
||||
correlation_id: (_a = process.env["RUNNER_NAME"]) !== null && _a !== void 0 ? _a : v4(),
|
||||
working_directory: confg.working_directory,
|
||||
api_url: confg.api_url,
|
||||
|
|
@ -86193,6 +86195,7 @@ function installAgentForBravo(owner, confg) {
|
|||
disable_sudo: confg.disable_sudo,
|
||||
disable_sudo_and_containers: confg.disable_sudo_and_containers,
|
||||
disable_file_monitoring: confg.disable_file_monitoring,
|
||||
private: confg.private,
|
||||
is_github_hosted: true,
|
||||
};
|
||||
const bravoConfigStr = JSON.stringify(bravoConfig);
|
||||
|
|
|
|||
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
|
|
@ -550,6 +550,8 @@ export async function installAgentForBravo(owner: string, confg: Configuration)
|
|||
|
||||
const bravoConfig = {
|
||||
customer: owner,
|
||||
repo: confg.repo,
|
||||
run_id: confg.run_id,
|
||||
correlation_id: process.env["RUNNER_NAME"] ?? uuidv4(),
|
||||
working_directory: confg.working_directory,
|
||||
api_url: confg.api_url,
|
||||
|
|
@ -560,6 +562,7 @@ export async function installAgentForBravo(owner: string, confg: Configuration)
|
|||
disable_sudo: confg.disable_sudo,
|
||||
disable_sudo_and_containers: confg.disable_sudo_and_containers,
|
||||
disable_file_monitoring: confg.disable_file_monitoring,
|
||||
private: confg.private,
|
||||
is_github_hosted: true,
|
||||
};
|
||||
const bravoConfigStr = JSON.stringify(bravoConfig);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue