-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (42 loc) · 1.11 KB
/
Copy pathcodeql.yml
File metadata and controls
47 lines (42 loc) · 1.11 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
name: CodeQL
# Security analysis (free for public repos). C# is analysed without building
# (build-mode: none), so it runs on Linux; the workflows are analysed too.
on:
# Gitflow: analyze what is released (main) and weekly; not on every feature pull request.
push:
branches: [main]
paths-ignore:
- "**/*.md"
- "docs/**"
- "LICENSE"
- ".github/ISSUE_TEMPLATE/**"
schedule:
- cron: "37 6 * * 1"
workflow_dispatch:
permissions:
contents: read
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
security-events: write
contents: read
actions: read
strategy:
fail-fast: false
matrix:
language: [csharp, actions]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: none
- name: Analyze
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{ matrix.language }}"