Repository navigation
68 lines (64 loc) · 2.28 KB
/
Copy pathcodeql.yml
File metadata and controls
68 lines (64 loc) · 2.28 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
65
66
67
68
name: CodeQL
# A pull request or a push to `main` that changes only documentation or agent
# instructions starts no run. CodeQL is not a required check, so a run that
# never starts leaves no check pending. A draft pull request is analyzed once
# it is marked ready for review, and on every push after that. A weekly run
# analyzes the whole tree.
on:
push:
branches: [main]
paths-ignore:
- "**/*.md"
- "**/*.mdx"
- LICENSE
- ".claude/**"
- ".agents/**"
- ".codex/**"
- ".githooks/**"
- ".github/ISSUE_TEMPLATE/**"
pull_request:
branches: [main]
types: [opened, synchronize, reopened, ready_for_review]
paths-ignore:
- "**/*.md"
- "**/*.mdx"
- LICENSE
- ".claude/**"
- ".agents/**"
- ".codex/**"
- ".githooks/**"
- ".github/ISSUE_TEMPLATE/**"
workflow_dispatch:
schedule:
- cron: "41 4 * * 1"
concurrency:
# A draft and a ready pull request have groups of their own, so a draft's
# run, queued a moment after the ready one, never cancels it. A push to
# `main` gets a group of its own, so a later push never cancels its run.
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event_name == 'pull_request' && format('{0}-{1}', github.ref, github.event.pull_request.draft && 'draft' || 'ready') || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
permissions:
contents: read
jobs:
analyze:
name: Analyze (${{ matrix.language }})
# Public repositories can scan without a paid Code Security license.
if: ${{ github.event.repository.private == false && !github.event.pull_request.draft }}
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [actions, javascript-typescript]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: github/codeql-action/init@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4.38.2
with:
languages: ${{ matrix.language }}
build-mode: none
- uses: github/codeql-action/analyze@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4.38.2
with:
category: /language:${{ matrix.language }}