fix: 修复 gosec 配置文件格式错误导致 CI 失败

gosec -conf 只支持 JSON 格式,将 .gosec.yaml 转换为 .gosec.json
This commit is contained in:
shaw committed 2026-02-13 20:12:50 +08:00
1 parent 8e2c22d0bd
commit 5248097f90
3 files changed
+6 -8

No files matched your search

+1 -1
View File
@@ -32,7 +32,7 @@ jobs:
working-directory: backend
run: |
go install github.com/securego/gosec/v2/cmd/gosec@latest
gosec -conf .gosec.yaml -severity high -confidence high ./...
gosec -conf .gosec.json -severity high -confidence high ./...
frontend-security:
runs-on: ubuntu-latest