Skip to content

Commit c39fe29

Browse files
committed
fix: 修复CI中gosec安装失败的问题
- 移除单独的security扫描job,因为golangci-lint已经包含gosec检查 - 简化CI流程,避免重复的安全扫描 - 解决gosec安装路径错误问题 golangci-lint已经集成了gosec、staticcheck等多种安全和代码质量检查工具, 无需单独运行gosec。这样可以减少CI运行时间并避免重复检查。
1 parent 729fc6b commit c39fe29

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -73,21 +73,3 @@ jobs:
7373
with:
7474
version: latest
7575
args: --timeout=5m
76-
77-
security:
78-
name: Security Scan
79-
runs-on: ubuntu-latest
80-
steps:
81-
- name: Checkout code
82-
uses: actions/checkout@v4
83-
84-
- name: Set up Go
85-
uses: actions/setup-go@v4
86-
with:
87-
go-version: '1.23'
88-
89-
- name: Install Gosec
90-
run: go install github.com/securecodewarrior/gosec/v2/cmd/gosec@latest
91-
92-
- name: Run Gosec Security Scanner
93-
run: gosec ./...

0 commit comments

Comments
 (0)