Skip to content

chore(deps): upgraded to latest dependencies #112

chore(deps): upgraded to latest dependencies

chore(deps): upgraded to latest dependencies #112

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
# This workflow contains a single job called "npm_test"
jobs:
npm_test:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '20.x'
- name: Install Dependencies 📌
run: npm ci --ignore-scripts
- name: Build the pending packages 🏗️
run: npm rebuild sqlite3
- name: Run Test Cases 🔧
run: npm run test
- name: Run Trivy vulnerability scanner in repo mode
uses: aquasecurity/trivy-action@0.35.0
with:
scan-type: 'fs'
scan-ref: '${{ github.workspace }}'
trivy-config: '${{ github.workspace }}/trivy.yaml'
- name: Run npm audit
run: >
npm audit --json |
node -e '
const fs = require("fs");
const auditLevel = (process.argv[1] || "critical").toLowerCase();
const { vulnerabilities } = JSON.parse(fs.readFileSync(0).toString("utf-8"));
const result = Object.values(vulnerabilities).filter((i) => i.severity.toLowerCase() === auditLevel);
console.table(JSON.stringify(result, null, 2));
' high