Skip to content
Closed
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 internal/api/deployments.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ type PullStepGitClone struct {
Branch *string `json:"branch,omitempty"`

// Access token for the repository.
AccessToken *string `json:"access_token,omitempty"`
AccessToken *string `json:"access_token,omitempty"` //nolint:gosec // this is a JSON field name, not a credential

// IncludeSubmodules determines whether to include submodules when cloning the repository.
IncludeSubmodules *bool `json:"include_submodules,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion internal/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func (c *Client) obtainCsrfToken() error {
req.Header.Set(key, value)
}

resp, err := c.hc.Do(req)
resp, err := c.hc.Do(req) //nolint:gosec // URL is constructed from provider configuration, not user input
if err != nil {
return fmt.Errorf("http error on CSRF token request: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/client/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func request(ctx context.Context, client *http.Client, cfg requestConfig) (*http
setDefaultHeaders(req, cfg.apiKey, cfg.basicAuthKey, cfg.csrfClientToken, cfg.csrfToken, cfg.customHeaders)

// Body will be closed by the caller.
resp, err := client.Do(req)
resp, err := client.Do(req) //nolint:gosec // URL is constructed from provider configuration, not user input
if err != nil {
return nil, fmt.Errorf("http error: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/compare.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ func request() result {
log.Printf("Error creating request: %v", err)
}

resp, err := http.DefaultClient.Do(req)
resp, err := http.DefaultClient.Do(req) //nolint:gosec // URL is a known API endpoint from command-line args
if err != nil {
log.Printf("Error getting openapi.json: %v", err)
}
Expand Down
Loading