From f8c3f02dbd191ef18e75c1c6bc0ca4b3fd6b5248 Mon Sep 17 00:00:00 2001 From: Oak Latt Date: Thu, 9 Jun 2022 09:24:14 -0400 Subject: [PATCH] Add snyk monitor action --- .github/workflows/snyk-scan.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/snyk-scan.yaml diff --git a/.github/workflows/snyk-scan.yaml b/.github/workflows/snyk-scan.yaml new file mode 100644 index 0000000..e3a4a65 --- /dev/null +++ b/.github/workflows/snyk-scan.yaml @@ -0,0 +1,24 @@ +name: Snyk Scan +on: + push: + branches: + - main + +jobs: + security: + runs-on: ubuntu-latest + steps: + - name: Checkout the code + uses: actions/checkout@v3 + + - name: Install Snyk + run: | + curl https://static.snyk.io/cli/latest/snyk-linux -o snyk + chmod +x ./snyk + mv ./snyk /usr/local/bin/ + + - name: Run Snyk to check for vulnerabilities + run: snyk monitor --org=development-infrastructure-and-operations-dio --project-name=${{ github.repository }} + env: + SNYK_TOKEN: ${{ secrets.SNYK_DIO_KEY }} + \ No newline at end of file