From 4959131ef291f2e8bed1d768a10cfedaef955b2d Mon Sep 17 00:00:00 2001 From: Bryan Moffatt Date: Tue, 18 Feb 2025 16:50:09 -0800 Subject: [PATCH 1/5] Update lint.yml --- .github/workflows/lint.yml | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3c948d56..8b0b5716 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -3,21 +3,24 @@ on: push: pull_request: +permissions: + # Required: allow read access to the content for analysis. + contents: read + # Optional: allow read access to pull request. Use with `only-new-issues` option. + pull-requests: read + # Optional: allow write access to checks to allow the action to annotate code in the PR. + checks: write + jobs: lint: name: run golangci-golint on the project runs-on: ubuntu-latest steps: - - uses: actions/setup-go@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: - go-version: '^1' - - - run: go version - - - uses: actions/checkout@v3 - + go-version: 'stable' - name: golangci-golint - run: | - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.55.2 - ./bin/golangci-lint run -v ./... - + uses: golangci/golangci-lint-action@v6 + with: + version: v1.60 From 5071de9686471c609c7ba82cf5da63a9e0567a12 Mon Sep 17 00:00:00 2001 From: Bryan Moffatt Date: Tue, 18 Feb 2025 16:55:04 -0800 Subject: [PATCH 2/5] Update .golangci.yml --- .golangci.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 56449af7..e2153e6e 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -12,13 +12,12 @@ linters: - stylecheck run: - skip-files: + exclude-dirs: # These were code-generated, and cannot be changed without breaking RPC compatibility. - - lambda/messages/*.go + - lambda/messages linters-settings: stylecheck: - go: "1.20" checks: - "all" initialisms: From d107b9e1035577e63b9d90ceacf6ffa06d9f97ab Mon Sep 17 00:00:00 2001 From: Bryan Moffatt Date: Tue, 18 Feb 2025 16:57:14 -0800 Subject: [PATCH 3/5] Update .golangci.yml --- .golangci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index e2153e6e..6fd5f147 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -11,7 +11,7 @@ linters: - unused - stylecheck -run: +issues: exclude-dirs: # These were code-generated, and cannot be changed without breaking RPC compatibility. - lambda/messages From 932e300478442a3367b53c56cd19e65411635d30 Mon Sep 17 00:00:00 2001 From: Bryan Moffatt Date: Tue, 18 Feb 2025 17:00:49 -0800 Subject: [PATCH 4/5] Update lint.yml --- .github/workflows/lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 8b0b5716..a39b921b 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -23,4 +23,4 @@ jobs: - name: golangci-golint uses: golangci/golangci-lint-action@v6 with: - version: v1.60 + version: v1.64.5 From c65b156aa739b1b636f8e857ee51e0e08563f3fd Mon Sep 17 00:00:00 2001 From: Bryan Moffatt Date: Tue, 18 Feb 2025 17:04:43 -0800 Subject: [PATCH 5/5] Update .golangci.yml --- .golangci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index 6fd5f147..7c8a65af 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -17,6 +17,10 @@ issues: - lambda/messages linters-settings: + staticcheck: + checks: + - all + - '-SA1029' stylecheck: checks: - "all"