chore: optimize and fix github actions (cleanup, CI fixes, security scanner tuning)

This commit is contained in:
Bot
2026-04-26 22:25:00 +08:00
parent b4a0641177
commit c606fd99f6
12 changed files with 38 additions and 436 deletions
+4 -1
View File
@@ -22,6 +22,7 @@ jobs:
runs-on: ${{ matrix.os }}-latest
env:
GO111MODULE: on
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
steps:
- uses: actions/checkout@v4
@@ -30,8 +31,10 @@ jobs:
go-version: "1.26.x"
- name: generate swagger docs
shell: bash
run: |
go install github.com/swaggo/swag/cmd/swag@latest
mkdir -p ./cmd/dashboard/user-dist ./cmd/dashboard/admin-dist
touch ./cmd/dashboard/user-dist/a
touch ./cmd/dashboard/admin-dist/a
swag init --pd -d cmd/dashboard -g main.go -o cmd/dashboard/docs
@@ -49,4 +52,4 @@ jobs:
env:
GOTOOLCHAIN: auto
with:
args: --exclude=G104,G115,G117,G203,G402,G703,G704 ./...
args: --exclude=G103,G104,G107,G115,G117,G203,G402,G703,G704 ./...