From 6c6a6280b68dd21d83a944e21d2fa98273373bef Mon Sep 17 00:00:00 2001 From: thuanle Date: Tue, 28 Apr 2026 07:53:23 +0700 Subject: [PATCH] ci: add pinned staticcheck job to PR workflow Co-Authored-By: Claude Opus 4.7 --- .gitea/workflows/ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index cbd8459..246b67d 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -36,3 +36,13 @@ jobs: with: go-version-file: go.mod - run: go vet ./... + + staticcheck: + runs-on: linux + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version-file: go.mod + - run: go install honnef.co/go/tools/cmd/staticcheck@2025.1.1 + - run: $(go env GOPATH)/bin/staticcheck ./...