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
bfc7b339
Unverified
Commit
bfc7b339
authored
Feb 28, 2026
by
Wesley Liddick
Committed by
GitHub
Feb 28, 2026
Browse files
Merge pull request #675 from wucm667/fix/gosec-timeout-exclude-ent-dir
fix(ci): 修复 gosec 扫描因 ent 生成代码导致超时的问题
parents
3bae5250
f30f8905
Changes
1
Hide whitespace changes
Inline
Side-by-side
.github/workflows/security-scan.yml
View file @
bfc7b339
...
@@ -12,6 +12,7 @@ permissions:
...
@@ -12,6 +12,7 @@ permissions:
jobs
:
jobs
:
backend-security
:
backend-security
:
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
timeout-minutes
:
15
steps
:
steps
:
-
uses
:
actions/checkout@v4
-
uses
:
actions/checkout@v4
-
name
:
Set up Go
-
name
:
Set up Go
...
@@ -32,7 +33,8 @@ jobs:
...
@@ -32,7 +33,8 @@ jobs:
working-directory
:
backend
working-directory
:
backend
run
:
|
run
:
|
go install github.com/securego/gosec/v2/cmd/gosec@latest
go install github.com/securego/gosec/v2/cmd/gosec@latest
gosec -conf .gosec.json -severity high -confidence high ./...
# exclude ent/ — auto-generated ORM code, not subject to manual security review
gosec -conf .gosec.json -severity high -confidence high -exclude-dir=ent ./...
frontend-security
:
frontend-security
:
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
...
...
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