-
Notifications
You must be signed in to change notification settings - Fork 22
50 lines (43 loc) 路 1.46 KB
/
Copy pathcodeql.yml
File metadata and controls
50 lines (43 loc) 路 1.46 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
name: CodeQL
# GitHub-managed security analysis. Scans our JavaScript and CI workflow
# definitions on every PR, every push to main, and weekly so the local
# CodeQL database refreshes against newly-published query packs even on
# code that hasn't changed.
#
# PHP support is currently in beta on CodeQL. We scan the GitHub Actions
# DSL (`actions`) plus our JavaScript today, and should add PHP once the
# language pack is stable.
on:
push:
branches: [ main ]
# Unfiltered on purpose, see ci.yml.
pull_request:
schedule:
- cron: '0 6 * * 1'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
security-events: write
actions: read
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-24.04
if: ${{ !startsWith(github.head_ref, 'release-please--') }}
strategy:
fail-fast: false
matrix:
language: [ 'javascript-typescript', 'actions' ]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
# init and analyze must stay on the same version.
- uses: github/codeql-action/init@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v4.38.0
with:
languages: ${{ matrix.language }}
- uses: github/codeql-action/analyze@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v4.38.0
with:
category: "/language:${{ matrix.language }}"