-
Notifications
You must be signed in to change notification settings - Fork 207
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
Update validation regex, pull checksums into script, and bump to 1.4.1 #287
Conversation
3c7818c
to
67a114e
Compare
67a114e
to
95e6f30
Compare
Codecov Report
@@ Coverage Diff @@
## master #287 +/- ##
==========================================
+ Coverage 97.07% 97.61% +0.54%
==========================================
Files 4 4
Lines 171 168 -3
Branches 49 47 -2
==========================================
- Hits 166 164 -2
+ Misses 5 4 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Thanks! |
@@ -26,31 +24,36 @@ const validateUploader = async (body) => { | |||
return true; | |||
}; | |||
|
|||
export const retrieveChecksum = async (version, encryption) => { | |||
const url = `https://raw.githubusercontent.com/codecov/codecov-bash/${version}/SHA${encryption}SUM`; |
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.
Please note the previous implementation has a flaw, as the version
may contain ..
(parent directory), so it can point to another repo.
Updates the validation regex to restrict on digits and dots. Adds checksums into the script so that it doesn't do another request. Also bumps to 1.4.1