Merge branch 'main' into mbg/fix/upload-sarif-non-sarif

This commit is contained in:
Michael B. Gale
2025-09-26 17:40:56 +01:00
committed by GitHub
+10
View File
@@ -1,7 +1,17 @@
#!/bin/bash
set -e
# Check if running in GitHub Actions
if [ "$GITHUB_ACTIONS" = "true" ]; then
echo "Running in a GitHub Actions workflow; not running 'npm install'"
exit 0
fi
# Check if npm install is likely needed before proceeding
if [ ! -d node_modules ] || [ package-lock.json -nt node_modules/.package-lock.json ]; then
echo "Running 'npm install' because 'node_modules/.package-lock.json' appears to be outdated..."
npm install
else
echo "Skipping 'npm install' because 'node_modules/.package-lock.json' appears to be up-to-date."
fi