Skip to content

Commit

Permalink
Update checksum algorithm for lockfile churn detection
Browse files Browse the repository at this point in the history
  • Loading branch information
ericcornelissen committed Jun 6, 2022
1 parent a24dc9b commit 3f17f8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Expand Up @@ -74,9 +74,9 @@ jobs:
- name: Test package-lock for unexpected modifications
run: |
npm -v
checksum=$(md5sum package-lock.json)
checksum=$(sha512sum package-lock.json)
npm install --package-lock-only --no-audit
if ! echo ${checksum} | md5sum --quiet -c -; then
if ! echo ${checksum} | sha512sum --quiet -c -; then
echo "package-lock.json was modified unexpectedly. Please rebuild it using npm@$(npm -v) and commit the changes."
exit 1
fi
Expand Down

0 comments on commit 3f17f8c

Please sign in to comment.