Skip to content

Commit d8bd3e8

Browse files
author
shijiashuai
committed
fix(ci): resolve golangci-lint v2 config and security scan for fork PRs
- Add 'version: 2' to .golangci.yml for golangci-lint v2 compatibility - Skip security scan for fork PRs to avoid authentication conflicts
1 parent 39c267e commit d8bd3e8

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ jobs:
163163
security:
164164
name: Security Scan
165165
runs-on: ubuntu-latest
166+
# Skip for fork PRs due to authentication issues with trufflehog
167+
if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request'
166168
permissions:
167169
contents: read
168170
security-events: write

.golangci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
version: 2
2+
13
run:
24
timeout: 3m
35
modules-download-mode: readonly

0 commit comments

Comments
 (0)