nvm save me!
This commit is contained in:
@ -22,8 +22,15 @@ jobs:
|
||||
python3 -m pip install --break-system-package semgrep
|
||||
semgrep scan -o /tmp/semgrep.sarif
|
||||
cat /tmp/semgrep.sarif
|
||||
apt-get update && apt-get install -y software-properties-common npm
|
||||
npm install npm@latest -g
|
||||
npm install n -g
|
||||
npm install -g @datadog/datadog-ci
|
||||
# Download and install nvm:
|
||||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.2/install.sh | bash
|
||||
# in lieu of restarting the shell
|
||||
\. "$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
|
Reference in New Issue
Block a user