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

Update validation regex, pull checksums into script, and bump to 1.4.1 #287

Merged
merged 3 commits into from
Apr 20, 2021

Conversation

thomasrockhu
Copy link
Contributor

@thomasrockhu thomasrockhu commented Apr 20, 2021

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

@thomasrockhu thomasrockhu requested a review from a team April 20, 2021 01:20
@codecov
Copy link

codecov bot commented Apr 20, 2021

Codecov Report

Merging #287 (77a7b61) into master (0e28ff8) will increase coverage by 0.54%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            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     
Flag Coverage Δ
demo 87.50% <ø> (ø)
script 98.68% <100.00%> (+0.61%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/validate.ts 100.00% <100.00%> (ø)
src/buildExec.ts 98.38% <0.00%> (+0.80%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0e28ff8...77a7b61. Read the comment docs.

@thomasrockhu thomasrockhu changed the title Update validation regex and bump to 1.4.1 Update validation regex, pull checksums into script, and bump to 1.4.1 Apr 20, 2021
@thomasrockhu thomasrockhu merged commit 967e2b3 into master Apr 20, 2021
@thomasrockhu thomasrockhu deleted the update-validation-regex branch April 20, 2021 12:59
@haampie
Copy link

haampie commented Apr 20, 2021

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`;

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.

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.

5 participants