mirror of
https://github.com/bitbaum/orangecat.git
synced 2026-12-04 00:37:17 +01:00
* ci: cut scheduled CI minutes (CI audit) * ci: cut scheduled CI minutes (CI audit) * ci: cut scheduled CI minutes (CI audit) * ci: cut scheduled CI minutes (CI audit) --------- Co-authored-by: catomean <catomean@users.noreply.github.com>
49 lines
1.5 KiB
YAML
49 lines
1.5 KiB
YAML
name: CodeQL
|
|
|
|
# Static application security testing (SAST) via GitHub CodeQL — free for public
|
|
# repos. Complements the CI `security` job (secrets + dependency CVEs): this finds
|
|
# code-level vulnerabilities (injection, unsafe flows) and surfaces them in the
|
|
# repo Security tab. Runs on PRs, on main, and weekly to catch newly-published
|
|
# query updates against unchanged code.
|
|
|
|
on:
|
|
# No push-to-main run: the PR scan already covered the merged code (CI audit 2026-10-21).
|
|
pull_request:
|
|
branches: [main]
|
|
schedule:
|
|
- cron: '0 3 * * 1' # Mondays 03:00 UTC
|
|
|
|
permissions:
|
|
contents: read
|
|
security-events: write
|
|
actions: read
|
|
|
|
concurrency:
|
|
group: codeql-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
analyze:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 30
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@v4.38.2
|
|
with:
|
|
languages: javascript-typescript
|
|
# 'security-and-quality' adds maintainability queries on top of the
|
|
# default security set — a slightly larger but richer sweep.
|
|
queries: security-and-quality
|
|
|
|
# JS/TS is interpreted — no compile step. autobuild is a safe no-op here.
|
|
- name: Autobuild
|
|
uses: github/codeql-action/autobuild@v4.38.2
|
|
|
|
- name: Perform CodeQL Analysis
|
|
uses: github/codeql-action/analyze@v4.38.2
|
|
with:
|
|
category: '/language:javascript-typescript'
|