"backend/internal/git@web.lueluesay.top:chenxi/sub2api.git" did not exist on "3cd398b098cf206fd2ce5edbbda6ea4e418ed0f6"
Unverified Commit bfc7b339 authored by Wesley Liddick's avatar Wesley Liddick Committed by GitHub
Browse files

Merge pull request #675 from wucm667/fix/gosec-timeout-exclude-ent-dir

fix(ci): 修复 gosec 扫描因 ent 生成代码导致超时的问题
parents 3bae5250 f30f8905
...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment