diff --git a/.github/workflows/snyk.yml b/.github/workflows/snyk.yml new file mode 100644 index 000000000..04961d803 --- /dev/null +++ b/.github/workflows/snyk.yml @@ -0,0 +1,31 @@ +name: CI + +on: + push: + branches: + - dev + pull_request: + branches: + - dev + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '20.14.0' + + - name: Install Snyk + run: npm install -g snyk + + - name: Authenticate Snyk + run: snyk auth ${{ secrets.SNYK_TOKEN }} + + - name: Run Snyk to check for vulnerabilities + run: snyk test