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:
Varun Sharma 2026-04-19 06:46:33 -07:00
commit fd9b4982b0
No known key found for this signature in database
3 changed files with 7 additions and 1 deletions

3
dist/pre/index.js vendored
View file

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

File diff suppressed because one or more lines are too long

View file

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