devops-kung-fu / devops-kung-fu/bomber

Snyk provider auth not working

Open
#291 1 comment 1 reaction 1 assignee Claimed by @djschleen View on GitHub
Dominant language
Go
Stars
624
Forks
56
PR merge metrics
No merged PRs in 30d

Description

It looks like there's been a change in behaviour when the HTTP client was changed to resty? The snyk provider in 0.5.1 appears to throw an authentication error.

```~~~ REQUEST ~~~
GET /rest/self?version=2022-09-15~experimental HTTP/1.1
HOST : api.snyk.io
HEADERS:
Authorization: Bearer
User-Agent: bomber
BODY :
***** NO CONTENT *****```

Note this is now using Bearer auth, rather than token, which is likely why this is failing.

Looking at the upstream project, we need to use `SetAuthScheme` and set to `token` I think.

I'll try and get a PR together unless someone gets there first. cc. @mcombuechen

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.