From 5a200b8229437c7f464b731fe59a4aa646635612 Mon Sep 17 00:00:00 2001 From: Ivan Gonzalez Date: Wed, 6 Nov 2024 19:09:18 -0500 Subject: [PATCH] fix: updating go linter workflow to latest version --- .github/workflows/golint.yml | 13 +++++++++---- .golangci.yml | 10 ++++++++++ 2 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 .golangci.yml diff --git a/.github/workflows/golint.yml b/.github/workflows/golint.yml index 6a2fdb6..8fc7136 100644 --- a/.github/workflows/golint.yml +++ b/.github/workflows/golint.yml @@ -9,18 +9,23 @@ on: workflow_dispatch: permissions: - contents: write + contents: read jobs: golint: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 with: fetch-depth: 0 + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version: stable + - name: Go Lint - uses: golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804 # v4.0.0 + uses: golangci/golangci-lint-action@v6 with: - version: v1.54 + version: v1.60 \ No newline at end of file diff --git a/.golangci.yml b/.golangci.yml new file mode 100644 index 0000000..0779746 --- /dev/null +++ b/.golangci.yml @@ -0,0 +1,10 @@ +output: + formats: + - format: colored-line-number + path: stdout + print-issued-lines: true + print-linter-name: true + sort-results: true + sort-order: + - file + - severity \ No newline at end of file