diff --git a/.github/workflows/synk.yaml b/.github/workflows/synk.yaml new file mode 100644 index 000000000..7044b2484 --- /dev/null +++ b/.github/workflows/synk.yaml @@ -0,0 +1,25 @@ +name: Security scanning +on: + push: + tags: + - v* + branches: + - master + - release-* + pull_request: + branches: + - master + - release-* +jobs: + security: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: run Snyk to check for code vulnerabilities + uses: snyk/actions/golang@master + env: + SNYK_TOKEN: ${{ secrets.GITHUB_TOKEN }}