forked from dcflachs/compose_plugin
-
Notifications
You must be signed in to change notification settings - Fork 4
59 lines (49 loc) · 1.48 KB
/
codeql.yml
File metadata and controls
59 lines (49 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# .github/workflows/codeql.yml
# CodeQL security analysis
#
# Replaces GitHub's default CodeQL setup with a custom workflow that
# respects [skip ci] commits (e.g., changelog updates, version bumps).
name: CodeQL
on:
push:
branches: [main, dev]
pull_request:
branches: [main, dev]
schedule:
- cron: '25 14 * * 1' # Weekly Monday scan
permissions:
security-events: write
contents: read
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: 'true'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
if: >-
github.event_name == 'schedule'
|| github.event_name == 'pull_request'
|| (
github.event_name == 'push'
&& !contains(github.event.head_commit.message, '[skip ci]')
&& !startsWith(github.event.head_commit.message, 'Release v')
&& github.event.head_commit.author.name != 'github-actions[bot]'
)
strategy:
fail-fast: false
matrix:
language: [javascript-typescript]
# CodeQL doesn't support PHP — static analysis for PHP is handled by PHPStan in tests.yml
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
- name: Autobuild
uses: github/codeql-action/autobuild@v4
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: '/language:${{ matrix.language }}'