Skip to content

[DT-1250][risk=no] Check for lint in the files that have changed between this PR and the destination branch. #4266

[DT-1250][risk=no] Check for lint in the files that have changed between this PR and the destination branch.

[DT-1250][risk=no] Check for lint in the files that have changed between this PR and the destination branch. #4266

Workflow file for this run

on: [pull_request]
name: npm audit
jobs:
scan:
name: npm audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- run: echo "NODE_VERSION=$(cat Dockerfile | awk 'NR==2 {gsub(":","@",$2); print $2}' | awk '{split($0, array, "@"); print array[2]}')" >> $GITHUB_ENV
- run: echo $NODE_VERSION
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: install dependencies
run: npm ci
- name: npm audit
run: npm audit --omit=dev