From ae7d55bafd91ddbca8c9d3150c2d4229a757060a Mon Sep 17 00:00:00 2001 From: Serhii-Kosharuk Date: Thu, 3 Jul 2025 13:38:51 +0300 Subject: [PATCH] fix(mend): change agentDownload functionality (#5392) Co-authored-by: jitendk --- cmd/whitesourceExecuteScan_generated.go | 4 ++-- resources/metadata/whitesourceExecuteScan.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/whitesourceExecuteScan_generated.go b/cmd/whitesourceExecuteScan_generated.go index 8f5bd6172..ae682d8a0 100644 --- a/cmd/whitesourceExecuteScan_generated.go +++ b/cmd/whitesourceExecuteScan_generated.go @@ -344,7 +344,7 @@ The step uses the so-called Mend Unified Agent. For details please refer to the } func addWhitesourceExecuteScanFlags(cmd *cobra.Command, stepConfig *whitesourceExecuteScanOptions) { - cmd.Flags().StringVar(&stepConfig.AgentDownloadURL, "agentDownloadUrl", `https://github.com/whitesource/unified-agent-distribution/releases/latest/download/wss-unified-agent.jar`, "URL used to download the latest version of the WhiteSource Unified Agent.") + cmd.Flags().StringVar(&stepConfig.AgentDownloadURL, "agentDownloadUrl", `https://downloads.mend.io/wss-unified-agent.jar`, "URL used to download the latest version of the WhiteSource Unified Agent.") cmd.Flags().StringVar(&stepConfig.AgentFileName, "agentFileName", `wss-unified-agent.jar`, "Locally used name for the Unified Agent jar file after download.") cmd.Flags().StringSliceVar(&stepConfig.AgentParameters, "agentParameters", []string{}, "[NOT IMPLEMENTED] List of additional parameters passed to the Unified Agent command line.") cmd.Flags().StringVar(&stepConfig.AgentURL, "agentUrl", `https://saas.whitesourcesoftware.com/agent`, "URL to the WhiteSource agent endpoint.") @@ -442,7 +442,7 @@ func whitesourceExecuteScanMetadata() config.StepData { Type: "string", Mandatory: false, Aliases: []config.Alias{}, - Default: `https://github.com/whitesource/unified-agent-distribution/releases/latest/download/wss-unified-agent.jar`, + Default: `https://downloads.mend.io/wss-unified-agent.jar`, }, { Name: "agentFileName", diff --git a/resources/metadata/whitesourceExecuteScan.yaml b/resources/metadata/whitesourceExecuteScan.yaml index 234698a46..48b09064b 100644 --- a/resources/metadata/whitesourceExecuteScan.yaml +++ b/resources/metadata/whitesourceExecuteScan.yaml @@ -49,7 +49,7 @@ spec: - PARAMETERS - STAGES - STEPS - default: https://github.com/whitesource/unified-agent-distribution/releases/latest/download/wss-unified-agent.jar + default: https://downloads.mend.io/wss-unified-agent.jar - name: agentFileName type: string description: "Locally used name for the Unified Agent jar file after download."