-
-
Notifications
You must be signed in to change notification settings - Fork 464
Use id to invoke oidc token generation #3442
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
Use id to invoke oidc token generation #3442
Conversation
|
That's cool. Thanks |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3442 +/- ##
==========================================
+ Coverage 85.35% 85.60% +0.24%
==========================================
Files 112 112
Lines 11549 11550 +1
Branches 2534 2535 +1
==========================================
+ Hits 9858 9887 +29
+ Misses 1162 1133 -29
- Partials 529 530 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@frostming please wait a bit. I will increase test coverage and want to test it with gitlab, so that I can add some example to the documentation. |
fc1a995 to
0cd91d7
Compare
182aec2 to
37f5aa5
Compare
37f5aa5 to
aa5bef3
Compare
|
I tested it with gitlab: https://gitlab.com/lioman/nextcloud_news_filter/-/jobs/9627357043 and it works. |
aa5bef3 to
d2a7e52
Compare
tests/cli/test_publish.py
Outdated
| with pytest.raises(PdmUsageError): | ||
| Repository(project, config=config) | ||
| captured = capsys.readouterr() | ||
| assert "Unable to detect OICD token for CI platform:" in captured.err |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| assert "Unable to detect OICD token for CI platform:" in captured.err | |
| assert "Unable to detect OIDC token for CI platform:" in captured.err |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry - I screwed up. Fixed it now.
`id` implements detection of different providers, like Github, Gitlab etc. With that pdm does not need to take care of all supported providers and can stand of the shoulder of that library that `twine` uses as well. - removed pdm's implementation of generating a token - add id dependency and use it - add test dependency to mock httpx requests - add test for oidc auth of Repository
d2a7e52 to
d4081bc
Compare
idimplements detection of different providers, like Github, Gitlab etc. With that pdm does not need to take care of all supported providers and can stand of the shoulder of that library that twine uses as well.iddependency and use itPull Request Checklist
news/describing what is new.Closes: #3441