Skip to content

add Debricked credentials and perform vulnerability scan #28

add Debricked credentials and perform vulnerability scan

add Debricked credentials and perform vulnerability scan #28

Workflow file for this run

name: Node.js CI 🚀
# This workflow will do a clean install of node dependencies, build the project, and run tests across different versions of node
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build: # 🏗️ Build Job
runs-on: ubuntu-latest # 🐧 Using the latest Ubuntu
strategy:
matrix:
node-version: [20.x, 21.x] # 📦 Test across Node.js versions 20.x and 21.x
steps:

Check failure on line 16 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

You have an error in your yaml syntax on line 16
- name: 📥 Checkout code
uses: actions/checkout@v3
- name: 📌 Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: 📦 Install dependencies
run: npm ci
- name: 🏗️ Build the project
run: npm run build --if-present
- name: 🧪 Run tests with coverage
run: npm run test:coverage
env:
CI: true
- name: 🎭 Mask Debricked credentials
run: |
echo "::add-mask::${{ secrets.DEBRICKED_USERNAME }}"
echo "::add-mask::${{ secrets.DEBRICKED_PASSWORD }}"
- name: 🛡️ Debricked Vulnerability Scan
uses: Debricked/scan-action@v1
with:
debricked-username: ${{ secrets.DEBRICKED_USERNAME }}
debricked-password: ${{ secrets.DEBRICKED_PASSWORD }}