From 177049a62f20f12f958609e9e51dcee3395dd8f1 Mon Sep 17 00:00:00 2001 From: "RENAN.BASTOS" Date: Wed, 22 Apr 2020 22:46:40 -0300 Subject: [PATCH] refactor: workflow to Gosec Based on documentation from Gosec change our file to run workflow security --- .github/workflows/security.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml index 2d2fa9ff..23776f9c 100644 --- a/.github/workflows/security.yml +++ b/.github/workflows/security.yml @@ -4,15 +4,14 @@ jobs: Security: strategy: matrix: - go-version: [1.14.x] platform: [ubuntu-latest] runs-on: ${{ matrix.platform }} + env: + GO111MODULE: on steps: - - name: Install Go - uses: actions/setup-go@v1 - with: - go-version: ${{ matrix.go-version }} - - name: Checkout code - uses: actions/checkout@v2 - - name: Security - run: go get github.com/securego/gosec/cmd/gosec; `go env GOPATH`/bin/gosec ./... \ No newline at end of file + - name: Checkout Source + uses: actions/checkout@v2 + - name: Run Gosec Security Scanner + uses: securego/gosec@master + with: + args: ./...