Skip to content
This repository has been archived by the owner on Jan 16, 2025. It is now read-only.

Update URL to use github-action dedicated URL #34

Merged
merged 1 commit into from
May 28, 2024
Merged
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
4 changes: 2 additions & 2 deletions pkg/trustyapi/trustyapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func ProcessDependency(dep string, ecosystem string, globalThreshold float64, re
shouldFail := false

// Construct the query URL for the API request
baseURL := "https://api.trustypkg.dev/v1/report"
baseURL := "https://gh.trustypkg.dev/v1/report"
queryParams := url.Values{}
queryParams.Add("package_name", dep)
queryParams.Add("package_type", ecosystem)
Expand All @@ -166,7 +166,7 @@ func ProcessDependency(dep string, ecosystem string, globalThreshold float64, re
// Create a channel for receiving the result
resultChan := make(chan Package)

// Make the API request to api.trustypkg.dev
// Make the API request to gh.trustypkg.dev
fetchPackageData(requestURL, dep, ecosystem, resultChan)

// Wait for the result
Expand Down
Loading