-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (38 loc) · 1.16 KB
/
codeql.yml
File metadata and controls
46 lines (38 loc) · 1.16 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
name: CodeQL
# CodeQL does not currently analyse PHP, so this workflow only scans the
# GitHub Actions workflow files themselves (catches action injection, secret
# leaks, mis-pinned versions, etc.). JavaScript/TypeScript is intentionally
# NOT scanned because the repo ships zero JS — CodeQL fails the run with
# "could not process any code written in JavaScript/TypeScript" when there
# is no source to analyse.
on:
schedule:
- cron: "30 5 * * 1"
push:
branches: [ master, main ]
pull_request:
branches: [ master, main ]
workflow_dispatch:
permissions:
actions: read
contents: read
security-events: write
jobs:
analyze:
name: Analyze · ${{ matrix.language }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
language: [ 'actions' ]
steps:
- uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
queries: security-and-quality
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{ matrix.language }}"