From 22216899b91583f32f974aefd8e38b6ce99784d2 Mon Sep 17 00:00:00 2001 From: subhamkrai Date: Mon, 27 Jul 2020 21:41:12 +0530 Subject: [PATCH] ci: adding gosec tool in ci this commit will add gosec check in ci and it will help us increase code quality. Signed-off-by: subhamkrai --- .github/workflows/gosec.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/gosec.yaml diff --git a/.github/workflows/gosec.yaml b/.github/workflows/gosec.yaml new file mode 100644 index 000000000..5f768461b --- /dev/null +++ b/.github/workflows/gosec.yaml @@ -0,0 +1,15 @@ +name: Gosec +on: [push, pull_request] + +jobs: + tests: + runs-on: ubuntu-latest + env: + GO111MODULE: on + steps: + - name: Checkout Source + uses: actions/checkout@v2 + - name: Run Gosec Security Scanner + uses: securego/gosec@master + with: + args: pkg/... -severity=medium && cmd/... -severity=medium