Skip to content
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

501 fix check token scopes #502

Merged
merged 15 commits into from
Oct 15, 2024
Merged

501 fix check token scopes #502

merged 15 commits into from
Oct 15, 2024

Conversation

maciekbanas
Copy link
Member

@maciekbanas maciekbanas commented Oct 14, 2024

Closes #501

…ossible tokens failed in for loop, no error was returned if last check token was not empty (but still invalid). This invalid token was passed to return (as it passed non-empty condition), with no message to user, but passing token to GitHost. Also, the check in GitHub `check_token_scopes` was wrong, and it is fixed now.
… GHA secret) with wider scope than the default one on GHA.
Copy link

codecov bot commented Oct 15, 2024

Codecov Report

Attention: Patch coverage is 91.30435% with 4 lines in your changes missing coverage. Please review.

Project coverage is 70.92%. Comparing base (7662271) to head (f53947e).
Report is 17 commits behind head on devel.

Files with missing lines Patch % Lines
R/GitHost.R 84.61% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##            devel     #502      +/-   ##
==========================================
+ Coverage   70.82%   70.92%   +0.10%     
==========================================
  Files          17       17              
  Lines        3047     3061      +14     
==========================================
+ Hits         2158     2171      +13     
- Misses        889      890       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@maciekbanas maciekbanas self-assigned this Oct 15, 2024
@maciekbanas maciekbanas marked this pull request as ready for review October 15, 2024 08:02
@maciekbanas maciekbanas merged commit 6768f63 into devel Oct 15, 2024
8 checks passed
@maciekbanas maciekbanas deleted the 501-fix-check-token-scopes branch October 15, 2024 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When token doesn't have required scope, code crashed with unformative error instead of error:
2 participants