-
Notifications
You must be signed in to change notification settings - Fork 6
feat: Enable true tokenless for bundler plugins #189
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
Merged
Merged
Changes from 6 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
be0e1f5
do not filter out branches for tokenless uploads
nora-shap 140b3a1
remove NoUploadTokenError
nsdeschenes d2d34c5
reorder logic in getPreSignedURL to be happy
nsdeschenes 91d6bd9
tidy up test
nsdeschenes f2dbd41
add in changeset
nsdeschenes ebc6cb3
remove tokenless from tokenless example
nsdeschenes 070a297
Merge branch 'main' into nora/2877
nora-shap c1f8e2a
leave tokenless example as it was
nora-shap File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| --- | ||
| "@codecov/bundler-plugin-core": minor | ||
| "@codecov/bundle-analyzer": minor | ||
| "@codecov/nextjs-webpack-plugin": minor | ||
| "@codecov/nuxt-plugin": minor | ||
| "@codecov/remix-vite-plugin": minor | ||
| "@codecov/rollup-plugin": minor | ||
| "@codecov/solidstart-plugin": minor | ||
| "@codecov/sveltekit-plugin": minor | ||
| "@codecov/vite-plugin": minor | ||
| "@codecov/webpack-plugin": minor | ||
| --- | ||
|
|
||
| Remove the org branch requirement for tokenless uploads |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
packages/bundler-plugin-core/src/errors/NoUploadTokenError.ts
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Are we still supporting the "tokenlessForForks"? If so, we should add a separate example for that scenario.
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.
yes, we are keeping
tokenlessForForkslive. good call - I agree there should be an example/test to show thattokenlessForForksare still validThere 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.
Would platform side of things complain if we set the branch to
codecov:<branch-name>for the example?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.
or does it have to be a username?
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.
might be hard to fudge the
:to get the branch:
first - for BA, shelter gets the
commit_idfrom thecommitfield in thebodyof the request. Thecommitandrepohave to exist in firestore - I'm thinking they will. If they exist, shelter uses thebranchfrom thecommit.if
sheltercan't get thecommit(if you found a way to break the above method), it will use thebranchfield in thebodyof the request.and then we have an additional check just for BA uploads, that the
branch(most likely from thecommit) has to match thebranchin thebodyof the request.This might explain why the tokenless example doesn't work on
shelter