-
Notifications
You must be signed in to change notification settings - Fork 1
64 lines (56 loc) · 1.72 KB
/
Copy pathcodeql.yml
File metadata and controls
64 lines (56 loc) · 1.72 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
60
61
62
63
64
name: codeql
# CodeQL security analysis for this repository.
#
# Scope: GitHub Actions workflows only (the `actions` language).
#
# This is a static vite-ssg site: the only JS/TS is a handful of small
# config/data files plus Vue SFCs, none of which carry security-sensitive
# logic. CodeQL's JavaScript extractor cannot usefully analyze Vue SFCs and
# repeatedly failed under GitHub's default-setup autobuild ("CodeQL could not
# process any code written in JavaScript/TypeScript"). The genuinely
# security-relevant surface here is the workflow files themselves
# (third-party actions, secrets, injection), which the `actions` language
# covers reliably. Dependency vulnerabilities are handled by Dependabot.
#
# Replaces the previous GitHub-managed default setup, which was disabled
# because it included the always-failing javascript-typescript analysis.
on:
push:
branches:
- main
paths-ignore:
- README.md
- CONTRIBUTING.md
- LICENSE
- .gitignore
pull_request:
schedule:
- cron: "23 8 * * 4"
workflow_dispatch:
permissions:
contents: read
security-events: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
include:
- language: actions
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{ matrix.language }}"