From faefd097b0b7c492f180aae8d2e56c41570d27f1 Mon Sep 17 00:00:00 2001 From: subhamkrai Date: Tue, 5 Oct 2021 20:06:48 +0530 Subject: [PATCH] ci: add action for synk as rook licence Adding github action for synk as licence for rook. This will replace FOSSA licence in future. Links to read about synk 1. https://snyk.io/ 2. https://github.com/snyk/snyk Signed-off-by: subhamkrai --- .github/workflows/synk.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/synk.yaml 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 }}