From 1ebe0bbf2ae9271e78440333d76f1a408689df25 Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Thu, 2 Dec 2021 14:09:58 +0700 Subject: [PATCH] chore: bump github action --- .github/workflows/go.yaml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index a7aaef0..c5f8115 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -16,8 +16,8 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 with: - go-version: "~1.16" - - run: go test -race ./... + go-version: "~1.17" + - run: go test -race -coverprofile=coverage.out ./... build: name: Build runs-on: ${{ matrix.os }} @@ -28,13 +28,24 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 with: - go-version: "~1.16" + go-version: "~1.17" - run: go build - lint: - name: Lint + golangci-lint: + name: golangci-lint runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: golangci/golangci-lint-action@v2 with: version: latest + semgrep: + name: semgrep + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: returntocorp/semgrep-action@v1 + with: + config: >- + p/security-audit + p/secrets + p/golang