Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue with Azure Pipelines PAT Auth #3160

Merged
merged 13 commits into from
Jun 29, 2022
2 changes: 1 addition & 1 deletion pkg/scalers/azure_pipelines_scaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ func getAzurePipelineRequest(ctx context.Context, url string, metadata *azurePip
return []byte{}, err
}

req.SetBasicAuth("PAT", metadata.personalAccessToken)
req.SetBasicAuth("", strings.TrimSuffix(metadata.personalAccessToken, "\n"))
raravena80 marked this conversation as resolved.
Show resolved Hide resolved

r, err := httpClient.Do(req)
if err != nil {
Expand Down