Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion upload-file/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion upload-file/input/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions upload-file/input/input_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,15 @@ 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,
},
{
name: "uses default endpoint when environment variable is not set",
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,
},
}
Expand Down
Loading