cyberchef/.github/workflows/codeql-analysis.yml
mkilijanek 4667f152cf ci: upgrade codeql-action from v3 to v4
CodeQL Action v3 will be deprecated in December 2026.
Updated init, autobuild, analyze steps to v4.

Reference: https://github.blog/changelog/2025-10-28-upcoming-deprecation-of-codeql-action-v3/

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-23 19:28:05 +01:00

58 lines
1.2 KiB
YAML

name: CodeQL Security Scanning
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
schedule:
# Run at 4 AM UTC every Monday
- cron: '0 4 * * 1'
permissions:
actions: read
contents: read
security-events: write
jobs:
analyze:
name: Analyze JavaScript/TypeScript
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
language: ['javascript']
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
# Query suites: default, security-extended, security-and-quality
queries: security-extended
config: |
paths-ignore:
- 'node_modules'
- 'dist'
- 'build'
- 'tests'
- '**/*.test.js'
- '**/*.spec.js'
- name: Autobuild
uses: github/codeql-action/autobuild@v4
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{ matrix.language }}"
upload: true