Skip to content

Commit

Permalink
Fix issue with Azure Pipelines PAT Auth
Browse files Browse the repository at this point in the history
Fixes kedacore#3159 

Signed-off-by: Ricardo Aravena <raravena80@gmail.com>
  • Loading branch information
raravena80 authored Jun 12, 2022
1 parent 41b8d87 commit 7dcaff4
Showing 1 changed file with 1 addition and 1 deletion.
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"))

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

0 comments on commit 7dcaff4

Please sign in to comment.