Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dependency vulnerabilities #213

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16.19.0
v18.20.6
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nodejs 16.19.0
nodejs 18.20.6
10 changes: 9 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
pipeline {
agent {
docker {
image 'ghcr.io/department-of-veterans-affairs/health-apis-docker-octopus/lighthouse-node-application-base:node16'
image 'ghcr.io/department-of-veterans-affairs/health-apis-docker-octopus/lighthouse-node-application-base:v2-node18'
registryUrl 'https://ghcr.io'
registryCredentialsId 'GITHUB_USERNAME_TOKEN'
}
}
environment {
NPM_TOKEN = credentials('LIGHTHOUSE_NPM_REGISTRY_TOKEN')
NPM_CONFIG_CACHE = '/tmp/.npm' // Set a custom cache directory
HOME = '/tmp' // Set HOME to a writable directory

}

stages {
stage('Setup') {
steps {
// Clean up node_modules and npm cache
sh 'rm -rf node_modules'
sh 'npm cache clean --force'
// Change ownership of the npm cache directory
sh 'sudo chown -R $(id -u):$(id -g) $NPM_CONFIG_CACHE || true'
sh 'npm install'
}
}
Expand Down
Loading
Loading