From 2c23ed94c7cf3e2c2dd53206bfd9dfac459d91f4 Mon Sep 17 00:00:00 2001 From: Bernd Warmuth Date: Tue, 27 Feb 2024 10:18:41 +0100 Subject: [PATCH] chore: added snyk gh action workflow --- .github/workflows/snyk.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/snyk.yml diff --git a/.github/workflows/snyk.yml b/.github/workflows/snyk.yml new file mode 100644 index 000000000..b6e3d651b --- /dev/null +++ b/.github/workflows/snyk.yml @@ -0,0 +1,20 @@ +name: Snyk Security Scan + +on: + pull_request: + branches: [ main ] + merge_group: # run if triggered as part of a merge queue + push: + branches: [ main ] + +jobs: + security: + name: Code security scanning alerts + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + - name: Run Snyk to check for vulnerabilities + uses: snyk/actions/golang@b98d498629f1c368650224d6d212bf7dfa89e4bf # v0.4.0 + env: + SNYK_TOKEN: ${{ secrets.SNYK_API_TOKEN }}