Files
cacti/.github/workflows/codeql.yml
T
Thomas Vincent bdfe930b6c ci(actions): correct pinned action version comments (#8832)
Several workflows pin actions by commit but label them with an older major version, such as '# v4' on checkout 3d3c42e5 (v7.0.1) and CodeQL 33d7b85d (v4.39.3). Update the comments to the tags those commits resolve to. The pinned commits do not change.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
2026-11-19 21:51:02 -05:00

62 lines
1.8 KiB
YAML

name: "CodeQL"
on:
push:
branches: [main, master, develop, regression-audit]
paths-ignore:
- "**/*.php"
- "**/*.md"
pull_request:
branches: [main, master, develop, '1.2.x', regression-audit]
paths-ignore:
- "**/*.php"
- "**/*.md"
merge_group:
schedule:
- cron: "30 1 * * 1"
workflow_dispatch:
concurrency:
group: codeql-${{ github.ref }}
cancel-in-progress: true
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-24.04
timeout-minutes: 20
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: ["javascript-typescript", "python"]
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Setup Node for managed JavaScript
if: matrix.language == 'javascript-typescript'
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version-file: .nvmrc
cache: npm
cache-dependency-path: package-lock.json
- name: Build patched browser assets
if: matrix.language == 'javascript-typescript'
run: |
set -euo pipefail
npm ci --ignore-scripts
npm run postinstall --ignore-scripts
- name: Initialize CodeQL
uses: github/codeql-action/init@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3
with:
languages: ${{ matrix.language }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3
with:
category: "/language:${{ matrix.language }}"