From 00f1ab9fe9ebee154950568bb6af4bd6d4852585 Mon Sep 17 00:00:00 2001 From: Sourabh Mehta <73165318+soumeh01@users.noreply.github.com> Date: Thu, 30 Jan 2025 09:37:21 +0100 Subject: [PATCH] Inspect source code for security issues --- .github/workflows/test.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 87b2c28..559c8b3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -61,6 +61,20 @@ jobs: run: | make format-check + gosec: + runs-on: ubuntu-latest + env: + GO111MODULE: on + + steps: + - name: Checkout Source + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + + - name: Run Gosec Security Scanner + uses: securego/gosec@e0cca6fe95306b7e7790d6f1bf6a7bec6d622459 # v2.22.0 + with: + args: '-severity high -exclude-dir=test ./...' + vulnerability-check: name: "Vulnerability check" runs-on: ubuntu-latest