ci: improve CodeQL workflow — add workflow_dispatch + Bun setup
This commit is contained in:
parent
7bf798d131
commit
6d1a732027
9
.github/workflows/codeql.yml
vendored
9
.github/workflows/codeql.yml
vendored
|
|
@ -7,6 +7,7 @@ on:
|
|||
branches: [main]
|
||||
schedule:
|
||||
- cron: '30 3 * * 1' # 每周一 03:30 UTC
|
||||
workflow_dispatch: # 手动触发
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
|
|
@ -26,6 +27,14 @@ jobs:
|
|||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Bun
|
||||
uses: oven-sh/setup-bun@v2
|
||||
with:
|
||||
bun-version: latest
|
||||
|
||||
- name: Install dependencies
|
||||
run: bun install
|
||||
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v3
|
||||
with:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user