devops-kung-fu / devops-kung-fu/bomber
Snyk provider auth not working
Open
- 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
Assessment
This issue has not been assessed yet.