From 82d053719d28bda9a9a58e96314a11a85bbf71d7 Mon Sep 17 00:00:00 2001 From: Vishnu Bharathi Date: Mon, 6 Oct 2025 14:28:54 +0530 Subject: [PATCH] refactor: migrate to using new API endpoint --- upload-file/action.yml | 2 +- upload-file/input/input.go | 2 +- upload-file/input/input_test.go | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/upload-file/action.yml b/upload-file/action.yml index b6b3a5d..71f2a26 100644 --- a/upload-file/action.yml +++ b/upload-file/action.yml @@ -19,7 +19,7 @@ inputs: security_agent_api_endpoint: description: "Security Agent API endpoint" required: false - default: https://security-agent.ddn.pro.hasura.io/graphql + default: https://sec-ql.agents-hasura.private-ddn.hasura.app/graphql security_agent_api_key: description: "Security Agent API key" required: true diff --git a/upload-file/input/input.go b/upload-file/input/input.go index 88f6fe1..1a9cd0c 100644 --- a/upload-file/input/input.go +++ b/upload-file/input/input.go @@ -40,7 +40,7 @@ func Parse() (*Input, error) { input.SecurityAgentAPIEndpoint = os.Getenv("INPUT_SECURITY_AGENT_API_ENDPOINT") if input.SecurityAgentAPIEndpoint == "" { - input.SecurityAgentAPIEndpoint = "https://security-agent.ddn.pro.hasura.io/graphql" + input.SecurityAgentAPIEndpoint = "https://sec-ql.agents-hasura.private-ddn.hasura.app/graphql" } securityAgentAPIKey := os.Getenv("INPUT_SECURITY_AGENT_API_KEY") diff --git a/upload-file/input/input_test.go b/upload-file/input/input_test.go index 5936d17..af19d72 100644 --- a/upload-file/input/input_test.go +++ b/upload-file/input/input_test.go @@ -126,7 +126,7 @@ func TestParseSecurityAgentAPIEndpoint(t *testing.T) { envEndpoint: "", envAPIKey: "test-api-key", envFilePath: testFile, - expectedEndpoint: "https://security-agent.ddn.pro.hasura.io/graphql", + expectedEndpoint: "https://sec-ql.agents-hasura.private-ddn.hasura.app/graphql", expectError: false, }, { @@ -134,7 +134,7 @@ func TestParseSecurityAgentAPIEndpoint(t *testing.T) { envEndpoint: "", // Will be unset in test envAPIKey: "test-api-key", envFilePath: testFile, - expectedEndpoint: "https://security-agent.ddn.pro.hasura.io/graphql", + expectedEndpoint: "https://sec-ql.agents-hasura.private-ddn.hasura.app/graphql", expectError: false, }, }