Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
5248097f
Commit
5248097f
authored
Feb 13, 2026
by
shaw
Browse files
fix: 修复 gosec 配置文件格式错误导致 CI 失败
gosec -conf 只支持 JSON 格式,将 .gosec.yaml 转换为 .gosec.json
parent
8e2c22d0
Changes
3
Hide whitespace changes
Inline
Side-by-side
.github/workflows/security-scan.yml
View file @
5248097f
...
...
@@ -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
...
...
backend/.gosec.json
0 → 100644
View file @
5248097f
{
"global"
:
{
"exclude"
:
"G704"
}
}
backend/.gosec.yaml
deleted
100644 → 0
View file @
8e2c22d0
global
:
# Exclude G704 (SSRF via taint analysis) - this is an API gateway platform
# that by design proxies requests to configurable upstream services.
# All upstream URLs are sourced from admin-configured settings or known
# third-party API endpoints, not from end-user input.
exclude
:
-
G704
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment