mirror of
https://github.com/cita-777/metapi.git
synced 2026-10-31 19:47:31 +08:00
The workflow stack should use the current checkout action now that the full CI matrix is green, keeping automation dependencies maintained without changing runtime behavior. Constraint: This is a GitHub Actions dependency update generated by Dependabot. Rejected: Holding the checkout major update without a failing signal | PR CI and CodeQL passed across the project gate. Confidence: high Scope-risk: narrow Directive: Re-check pull_request_target behavior before future checkout major upgrades because v7 changes fork checkout protections. Tested: GitHub CI for PR #587 passed Test Core, Build Web, Build Server, Build Desktop, Typecheck, schema checks for SQLite/MySQL/Postgres, Build Docs, CodeQL, and audit. Not-tested: Docker publish jobs were skipped because this was a pull_request workflow, not a push/tag publish event.
57 lines
1.2 KiB
YAML
57 lines
1.2 KiB
YAML
name: CodeQL
|
|
|
|
on:
|
|
push:
|
|
branches: [main, master]
|
|
paths-ignore:
|
|
- 'docs/**'
|
|
- 'README.md'
|
|
- 'README_EN.md'
|
|
- 'CONTRIBUTING.md'
|
|
- 'SECURITY.md'
|
|
- 'CODE_OF_CONDUCT.md'
|
|
pull_request:
|
|
paths-ignore:
|
|
- 'docs/**'
|
|
- 'README.md'
|
|
- 'README_EN.md'
|
|
- 'CONTRIBUTING.md'
|
|
- 'SECURITY.md'
|
|
- 'CODE_OF_CONDUCT.md'
|
|
schedule:
|
|
- cron: '19 18 * * 0'
|
|
|
|
permissions:
|
|
actions: read
|
|
contents: read
|
|
security-events: write
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
analyze:
|
|
name: Analyze (JavaScript/TypeScript)
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 30
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
language: ['javascript-typescript']
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@v4
|
|
with:
|
|
languages: ${{ matrix.language }}
|
|
build-mode: none
|
|
|
|
- name: Analyze
|
|
uses: github/codeql-action/analyze@v4
|
|
with:
|
|
category: /language:${{ matrix.language }}
|