Skip to content

Commit 8fcff74

Browse files
committed
Ignore ./vendor for git-validation.
Signed-off-by: Jan Kaluza <[email protected]>
1 parent d05be7c commit 8fcff74

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/validate.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ jobs:
7070
# only run this on PRs
7171
if: github.event_name == 'pull_request'
7272
runs-on: ubuntu-24.04
73+
env:
74+
GIT_CHECK_EXCLUDE: "./vendor"
7375
steps:
7476
- uses: actions/checkout@v5
7577
with:
@@ -83,6 +85,7 @@ jobs:
8385
# See comment on lint task
8486
cache-dependency-path: "**/go.sum"
8587
- name: run git-validation
88+
8689
# We validate all commits as we only fetched the number of commits in the PR above,
8790
# by default git-validation has some special github action handling but that seems broken.
8891
run: make .install.gitvalidation && git-validation -no-github

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ install.tools: .install.gitvalidation .install.golangci-lint .install.md2man
4141

4242
.PHONY: git-validation
4343
git-validation: .install.gitvalidation
44-
git-validation -q -run DCO,short-subject,dangling-whitespace -range "$(EPOCH_TEST_COMMIT)..HEAD"
44+
GIT_CHECK_EXCLUDE="./vendor" git-validation -q -run DCO,short-subject,dangling-whitespace -range "$(EPOCH_TEST_COMMIT)..HEAD"
4545

4646
.PHONY: lint
4747
lint: .install.golangci-lint

0 commit comments

Comments
 (0)