Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 20 additions & 6 deletions script/yarn_audit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,27 @@ done

if cat yarn_audit.json | jq -c 'select ( .type == "auditAdvisory" and (.data.advisory.github_advisory_id | IN ('"$YARN_IGNORE_JSON"') | not) )' | jq -Me; then
echo
echo Warning: New yarn audit vulnerabilities found in yarn.lock, listed above.
echo Run script/yarn_audit.sh upgrade, or update YARN_IGNORE in
echo script/yarn_audit.sh with accepted github_advisory_id values.
echo e.g. by running:
echo "$0 | grep -e title -e github_advisory_id | sed -E -e 's/^ *\"title\": \"(.*)\",\$/# \\1/' -e 's/^ *\"github_advisory_id\": \"(.*)\",/YARN_IGNORE+=(\\1)/'"
exit 1
echo Warning: New yarn audit vulnerabilities found in yarn.lock, listed above. Run
echo " script/yarn_audit.sh upgrade"
echo then update YARN_IGNORE in script/yarn_audit.sh with accepted
echo github_advisory_id values, e.g. by running:
echo " $0 | grep -e title -e github_advisory_id | sed -E -e 's/^ *\"title\": \"(.*)\",\$/# \\1/' -e 's/^ *\"github_advisory_id\": \"(.*)\",/YARN_IGNORE+=(\\1)/'"
EXITSTATUS=1
else
rm -f yarn_audit.json
echo No new yarn audit vulnerabilities found
EXITSTATUS=0
fi

if [ "$EXITSTATUS" != "" ] || ! git diff --exit-code script/yarn_audit.sh yarn.lock > /dev/null; then
echo
echo To commit changes, run:
echo "("
echo " git checkout -b feature/yarn_upgrade_`date +%Y%m%d`"
echo " git clean -f vendor/npm-packages-offline-cache/"
echo " git add yarn.lock script/yarn_audit.sh vendor/npm-packages-offline-cache/"
echo " git commit -m 'yarn upgrade'"
echo ")"
fi

exit $EXITSTATUS
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed vendor/npm-packages-offline-cache/ajv-6.14.0.tgz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed vendor/npm-packages-offline-cache/express-4.22.1.tgz
Binary file not shown.
Binary file not shown.
Binary file removed vendor/npm-packages-offline-cache/hasown-2.0.2.tgz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed vendor/npm-packages-offline-cache/qs-6.14.2.tgz
Binary file not shown.
Binary file removed vendor/npm-packages-offline-cache/qs-6.15.0.tgz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed vendor/npm-packages-offline-cache/semver-7.7.4.tgz
Binary file not shown.
Binary file not shown.
Binary file not shown.
255 changes: 129 additions & 126 deletions yarn.lock

Large diffs are not rendered by default.

Loading