Skip to content

Commit

Permalink
Create debricked.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
InternalBenchmarkDebricked committed Apr 18, 2024
1 parent 3f5766f commit 9eaafe6
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/debricked.yml
@@ -0,0 +1,54 @@
name: Debricked scan

on: [push]

jobs:
vulnerabilities-scan-production:
runs-on: ubuntu-latest

container:
image: debricked/cli:latest-resolution-debian

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Fingerprint files
run: |
cd npm
npm install
rm package.json
rm package-lock.json
cd ..
cd yarn
rm package.json
rm yarn.lock
cd ..
debricked fingerprint --fingerprint-compressed-content
- name: Run Scan
run: |
debricked scan
env:
DEBRICKED_TOKEN: ${{ secrets.DEBRICKED_TOKEN }}

vulnerabilities-scan-staging:
runs-on: ubuntu-latest

container:
image: debricked/cli:latest-resolution-debian

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Fingerprint files
run: |
debricked fingerprint --fingerprint-compressed-content
- name: Run Scan
run: |
debricked scan
env:
DEBRICKED_TOKEN: ${{ secrets.DEBRICKED_TOKEN_STAGING }}
DEBRICKED_URI: 'https://staging.debricked.com'

0 comments on commit 9eaafe6

Please sign in to comment.