Skip to content

Commit 3cdd382

Browse files
authored
Refactor CodeQL workflow for improved clarity (#180)
* Refactor CodeQL workflow for improved clarity * Lint
1 parent cb37dac commit 3cdd382

File tree

2 files changed

+50
-1
lines changed

2 files changed

+50
-1
lines changed

.github/workflows/codeql.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
name: CodeQL
3+
4+
"on":
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
branches:
10+
- main
11+
paths-ignore:
12+
- "**/*.md"
13+
14+
permissions: {}
15+
16+
jobs:
17+
analyze:
18+
name: Analyze (${{ matrix.language }})
19+
runs-on: ubuntu-latest
20+
permissions:
21+
contents: read
22+
security-events: write
23+
24+
strategy:
25+
fail-fast: false
26+
matrix:
27+
language:
28+
- actions
29+
- csharp
30+
31+
steps:
32+
- name: Checkout repository
33+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
34+
with:
35+
persist-credentials: false
36+
37+
- name: Initialize CodeQL
38+
uses: github/codeql-action/init@fdbfb4d2750291e159f0156def62b853c2798ca2 # v4.31.5
39+
with:
40+
languages: ${{ matrix.language }}
41+
build-mode: none
42+
queries: security-extended
43+
44+
- name: Perform CodeQL Analysis
45+
uses: github/codeql-action/analyze@fdbfb4d2750291e159f0156def62b853c2798ca2 # v4.31.5
46+
with:
47+
category: /language:${{matrix.language}}

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,4 +395,6 @@ FodyWeavers.xsd
395395
*.msp
396396

397397
# JetBrains Rider
398-
*.sln.iml
398+
*.sln.iml
399+
400+
.DS_Store

0 commit comments

Comments
 (0)