lilydjwg / nvchecker

New version checker for software releases
MIT License
439 stars 70 forks source link

Add container source plugin #162

Closed yan12125 closed 4 years ago

yan12125 commented 4 years ago

Closes #59

Uploaded as a draft to see if CI passes

This PR introduces a new dependency for decoding one of OAuth2 header. If you don't want an additional dependency, please tell me and I will try to implement the decoding. (should be less than 100 lines, hopefully) Copied needed parts from Werkzeug

Tested images:

yan12125 commented 4 years ago

It's overkill to depend on werkzeug to just use one small function (and the implementation is incomplete). We can implement this ourselves.

No problem. I copied and simplified needed part from Werkzeug (BSD license).

Also we can cache the auth_info in case a configuration file has a few entries for the same registry.

Good suggestion! Done in the latest revision.

lilydjwg commented 4 years ago

Thanks!