-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (51 loc) · 1.47 KB
/
codeql.yml
File metadata and controls
62 lines (51 loc) · 1.47 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
name: "CodeQL"
on:
push:
branches:
- "*"
paths-ignore:
- "**/README.md"
- "docs/**"
- "images/**"
pull_request:
types:
- ready_for_review
schedule:
- cron: "24 2 * * 4"
workflow_dispatch:
permissions: write-all
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
if: ${{ github.event.repository.private == false }}
strategy:
fail-fast: false
matrix:
language: ["csharp"]
steps:
- uses: actions/checkout@v6
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 9.0.x
- name: Ensure dist placeholders exist
run: |
mkdir -p ./SegmentEditorPlugin/dist/assets
if [ ! -f ./SegmentEditorPlugin/dist/index.html ]; then
printf '<!doctype html><title>Segment Editor</title>' > ./SegmentEditorPlugin/dist/index.html
fi
if [ ! -f ./SegmentEditorPlugin/dist/favicon.png ]; then
: > ./SegmentEditorPlugin/dist/favicon.png
fi
- name: Restore dependencies
run: dotnet restore SegmentEditorPlugin.sln
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
queries: +security-extended
- name: Build
run: dotnet build SegmentEditorPlugin.sln --configuration Release --no-restore
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@v4