From 271c998616e699ab4f6fe8439a19f66c6e7daddc Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Wed, 15 Nov 2023 09:45:45 +0100 Subject: [PATCH] ci: add snyk for security scanning adding snyk github action to run when a PR is merged to the branch, This will help us to track the security scanning results and fix if anything is required and also it serves as a placeholder for security scanning result for a while. Signed-off-by: Madhu Rajanna --- .github/workflows/snyk.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/snyk.yaml diff --git a/.github/workflows/snyk.yaml b/.github/workflows/snyk.yaml new file mode 100644 index 000000000000..2eedd80cca7d --- /dev/null +++ b/.github/workflows/snyk.yaml @@ -0,0 +1,28 @@ +--- +name: Security scanning +# yamllint disable-line rule:truthy +on: + push: + tags: + - v* + branches: + - devel + - release-* + +permissions: + contents: read + +jobs: + security: + if: github.repository == 'ceph/ceph-csi' + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: run Snyk to check for code vulnerabilities + uses: snyk/actions/golang@master + env: + SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}