File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed
Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -28,13 +28,19 @@ jobs:
2828 - name : Generate
2929 run : go generate ./...
3030
31+ - name : Install golangci-lint
32+ run : go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.10.1
33+
3134 - name : Run SAST (golangci-lint)
32- uses : golangci/golangci-lint-action@v8
33- with :
34- version : " latest"
35- only-new-issues : true
36- args : --timeout=10m
37- skip-cache : true
35+ shell : bash
36+ run : |
37+ set -euo pipefail
38+ PACKAGES=$(go list ./... 2>/dev/null | grep -Ev '^github.com/transferia/transferia/pkg/providers/logbroker|^github.com/transferia/transferia/pkg/providers/yds|^github.com/transferia/transferia/pkg/util/queues/lbyds' || true)
39+ if [ -z "$PACKAGES" ]; then
40+ echo "No packages selected for golangci-lint"
41+ exit 1
42+ fi
43+ golangci-lint run --timeout=10m $PACKAGES
3844
3945 - name : Get enabled linters as a table
4046 id : get_linters
Original file line number Diff line number Diff line change @@ -1722,6 +1722,8 @@ github.com/jhump/protoreflect v1.14.1/go.mod h1:JytZfP5d0r8pVNLZvai7U/MCuTWITgrI
17221722github.com/jhump/protoreflect v1.17.0 h1:qOEr613fac2lOuTgWN4tPAtLL7fUSbuJL5X5XumQh94 =
17231723github.com/jhump/protoreflect v1.17.0 /go.mod h1:h9+vUUL38jiBzck8ck+6G/aeMX8Z4QUY/NiJPwPNi+8 =
17241724github.com/jmespath/go-jmespath v0.0.0-20160803190731-bd40a432e4c7 /go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k =
1725+ github.com/jmespath/go-jmespath v0.3.0 h1:OS12ieG61fsCg5+qLJ+SsW9NicxNkg3b25OyT2yCeUc =
1726+ github.com/jmespath/go-jmespath v0.3.0 /go.mod h1:9QtRXoHjLGCJ5IBSaohpXITPlowMeeYCZ7fLUTSywik =
17251727github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg =
17261728github.com/jmespath/go-jmespath v0.4.0 /go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo =
17271729github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8 =
You can’t perform that action at this time.
0 commit comments