From 8c456a3d04143b56401720dbf5eb8fd53203d24c Mon Sep 17 00:00:00 2001 From: Jagoda11 Date: Tue, 21 May 2024 21:55:47 +0200 Subject: [PATCH] chore: Update Debricked vulnerability scan configuration --- .github/workflows/main.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 51217ec0..3563115f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,10 +9,10 @@ on: jobs: build: # 🏗️ Build Job - runs-on: ubuntu-latest # 🐧 Using the latest Ubuntu + runs-on: ubuntu-latest strategy: matrix: - node-version: [20.x, 21.x] # 📦 Test across Node.js versions 20.x and 21.x + node-version: [20.x, 21.x] steps: - name: 📥 Checkout code uses: actions/checkout@v3 @@ -33,7 +33,9 @@ jobs: echo "::add-mask::${{ secrets.DEBRICKED_USERNAME }}" echo "::add-mask::${{ secrets.DEBRICKED_PASSWORD }}" - name: 🛡️ Debricked Vulnerability Scan - run: | - curl -s https://app.debricked.com/api/v1/cli/download -o debricked-cli.phar - chmod +x debricked-cli.phar - ./debricked-cli.phar ci:upload --username ${{ secrets.DEBRICKED_USERNAME }} --password ${{ secrets.DEBRICKED_PASSWORD }} --repository ${{ github.repository }} --commit ${{ github.sha }} + uses: debricked/actions/scan@v1 + with: + username: ${{ secrets.DEBRICKED_USERNAME }} + password: ${{ secrets.DEBRICKED_PASSWORD }} + repository: ${{ github.repository }} + commit: ${{ github.sha }}