This commit is contained in:
spiritysdx
2024-06-29 20:15:36 +08:00
parent d3941bf7cd
commit 6f1de5cae8
2 changed files with 8 additions and 6 deletions

View File

@@ -78,10 +78,12 @@ jobs:
git config --global url."git@github.com:".insteadOf "https://github.com/"
env:
GITHUB_TOKEN: ${{ secrets.GHT }}
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.53.2
- name: Install golangci-lint
run: |
curl -sSfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.53.2
- name: Run golangci-lint
run: golangci-lint run ./...
env:
GOPRIVATE: github.com/oneclickvirt/security
GITHUB_TOKEN: ${{ secrets.GHT }}