nvm save me!
Some checks failed
Datadog Secrets Scanning / Datadog Static Analyzer (push) Successful in 15s
Datadog Software Composition Analysis / Datadog SBOM Generation and Upload (push) Successful in 16s
Release / build (push) Successful in 37s
Datadog Static Analysis / Datadog Static Analyzer (push) Failing after 58s
Release / publish_head (push) Successful in 35s

This commit is contained in:
Tanishq Dubey 2025-03-21 12:39:16 -04:00
parent 90d20978b1
commit b407497713

View File

@ -22,8 +22,15 @@ jobs:
python3 -m pip install --break-system-package semgrep python3 -m pip install --break-system-package semgrep
semgrep scan -o /tmp/semgrep.sarif semgrep scan -o /tmp/semgrep.sarif
cat /tmp/semgrep.sarif cat /tmp/semgrep.sarif
apt-get update && apt-get install -y software-properties-common npm # Download and install nvm:
npm install npm@latest -g curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.2/install.sh | bash
npm install n -g # in lieu of restarting the shell
npm install -g @datadog/datadog-ci \. "$HOME/.nvm/nvm.sh"
# Download and install Node.js:
nvm install 22
# Verify the Node.js version:
node -v # Should print "v22.14.0".
nvm current # Should print "v22.14.0".
# Verify npm version:
npm -v # Should print "10.9.2".
datadog-ci sarif upload /tmp/semgrep.sarif datadog-ci sarif upload /tmp/semgrep.sarif