From a11ba1bf3fb63e8099517f799762e0898dc19136 Mon Sep 17 00:00:00 2001 From: Alvar Penning Date: Tue, 8 Oct 2024 09:27:31 +0200 Subject: [PATCH] GHA: introduce golangci-lint The same GitHub Action already used in the icinga-go-library was added to the Go workflow. --- .github/workflows/go.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index b0d2f0e19..b3d61a50a 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -38,6 +38,14 @@ jobs: with: install-go: false + - uses: golangci/golangci-lint-action@v6 + with: + version: latest + only-new-issues: true + + # Enable the gosec linter w/o having to create a .golangci.yml config + args: -E gosec + vet: runs-on: ubuntu-latest steps: