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

🐛 Clear all possible token env vars for token accessor test. #3347

Merged
merged 1 commit into from
Aug 4, 2023

Conversation

spencerschrock
Copy link
Contributor

What kind of change does this PR introduce?

test bug fix

What is the current behavior?

If a dev has any of the env vars set, the TestMakeTokenAccessor will fail locally for them.

What is the new behavior (if this is a feature change)?**

All possible env vars that the accessor reads from are cleared before this test

  • Tests for the changes have been added (for bug fixes/features)

Which issue(s) this PR fixes

NONE

Special notes for your reviewer

@laurentsimon can you confirm this fixes your issue?

Does this PR introduce a user-facing change?

For user-facing changes, please add a concise, human-readable release note to
the release-note

(In particular, describe what changes users might need to make in their
application as a result of this pull request.)


Signed-off-by: Spencer Schrock <sschrock@google.com>
@spencerschrock spencerschrock temporarily deployed to gitlab August 4, 2023 02:46 — with GitHub Actions Inactive
@spencerschrock spencerschrock temporarily deployed to integration-test August 4, 2023 02:47 — with GitHub Actions Inactive
@codecov
Copy link

codecov bot commented Aug 4, 2023

Codecov Report

Merging #3347 (c86d68d) into main (b1f3519) will decrease coverage by 6.40%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3347      +/-   ##
==========================================
- Coverage   73.59%   67.19%   -6.40%     
==========================================
  Files         173      173              
  Lines       12717    12716       -1     
==========================================
- Hits         9359     8545     -814     
- Misses       2831     3677     +846     
+ Partials      527      494      -33     

@laurentsimon laurentsimon merged commit f30ff23 into ossf:main Aug 4, 2023
40 of 41 checks passed
@spencerschrock spencerschrock deleted the fix/token-accessor-test branch August 4, 2023 04:42
ashearin pushed a commit to kgangerlm/scorecard-gitlab that referenced this pull request Nov 13, 2023
Signed-off-by: Spencer Schrock <sschrock@google.com>
Signed-off-by: Allen Shearin <allen.p.shearin@gmail.com>
This pull request was closed.
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.

2 participants