v-wordpress-plugin-updater/.github/workflows/codeql.yml
nikolai@vontainment.com fb88a9e08a new file: .eslintrc.json
new file:   .github/workflows/ci.yml
	new file:   .github/workflows/codeql.yml
	deleted:    .github/workflows/mega-linter.yml
	new file:   .github/workflows/pr-auto-fix.yml
	deleted:    .mega-linter.yml
	new file:   .stylelintrc.json
	modified:   phpcs.xml
	new file:   phpstan.neon
	new file:   phpunit.xml
2025-08-13 22:26:00 -04:00

47 lines
1 KiB
YAML

name: "CodeQL"
on:
push:
branches: [ "main", "dev" ]
pull_request:
branches: [ "main", "dev" ]
schedule:
- cron: '0 0 * * 0' # weekly scan
permissions:
contents: read
security-events: write
jobs:
analyze:
name: Analyze PHP and JavaScript
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'php', 'javascript' ]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
- name: Autobuild
uses: github/codeql-action/autobuild@v3
# If autobuild fails for PHP, uncomment and adjust:
# - run: composer install --no-interaction --prefer-dist
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{ matrix.language }}"