Skip to content

Commit 58c2a43

Browse files
committed
Fix golangci-lint action step for large diff
1 parent e6efe89 commit 58c2a43

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ jobs:
3636
runs-on: ubuntu-latest
3737
steps:
3838
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
39+
with:
40+
fetch-depth: 0
3941
- uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
4042
with:
4143
go-version-file: "go.mod"
@@ -47,11 +49,10 @@ jobs:
4749
fi
4850
echo "$gofmt_out"
4951
- name: golangci-lint
50-
uses: golangci/golangci-lint-action@e7fa5ac41e1cf5b7d48e45e42232ce7ada589601 # v9.1.0
52+
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v6.2.0
5153
with:
52-
version: v2.1.0
53-
only-new-issues: true
54-
args: --timeout=10m
54+
version: v2.7.2
55+
args: --timeout=10m --new-from-merge-base=origin/${{ github.base_ref }}
5556
- name: yamllint
5657
run: |
5758
apt update && apt install -y yamllint

0 commit comments

Comments
 (0)