ci: use go install for golangci-lint instead of curl script

This commit is contained in:
2025-12-11 17:43:46 +01:00
parent 4be8a96699
commit 6b66ae5429

View File

@@ -52,7 +52,7 @@ jobs:
git clone --depth 1 --branch ${GITHUB_REF_NAME} ${{ env.GITEA_URL }}/${GITHUB_REPOSITORY}.git .
- name: Install golangci-lint
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b /usr/local/bin v1.62.2
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.62.2
- name: Run golangci-lint
run: golangci-lint run --timeout=5m ./...