Merge pull request #39 from CalPinSW/snyk-upgrade-cbd2e5d6357cf71182b… #67
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Snyk Security Scan | |
on: "push" | |
jobs: | |
frontend-scan: | |
name: frontend scan | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- run: npm install | |
working-directory: frontend | |
- uses: snyk/actions/setup@master | |
- name: Snyk monitor | |
working-directory: frontend | |
run: snyk test --severity-threshold=medium | |
env: | |
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | |
backend-scan: | |
name: backend scan | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- uses: snok/install-poetry@v1 | |
with: | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
- run: poetry install | |
working-directory: backend | |
- uses: snyk/actions/setup@master | |
- name: Snyk monitor | |
working-directory: backend | |
run: snyk test --severity-threshold=medium | |
env: | |
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} |