Skip to content

Commit ebdd044

Browse files
authored
Merge pull request #12392 from swagger-api/CodeQl-attachment
Add CodeQl workflow
2 parents da36c80 + 9462238 commit ebdd044

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: "CodeQL"
2+
3+
on:
4+
schedule:
5+
- cron: '16 04 * * 2'
6+
7+
jobs:
8+
analyze:
9+
name: Analyze
10+
runs-on: ubuntu-latest
11+
permissions:
12+
actions: read
13+
contents: read
14+
security-events: write
15+
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
language: [ 'java' ]
20+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
21+
# Use only 'java' to analyze code written in Java, Kotlin or both
22+
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
23+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
24+
25+
steps:
26+
- name: Checkout repository
27+
uses: actions/checkout@v4
28+
29+
# Initializes the CodeQL tools for scanning.
30+
- name: Initialize CodeQL
31+
uses: github/codeql-action/init@v3
32+
with:
33+
languages: ${{ matrix.language }}
34+
config: |
35+
paths-ignore:
36+
- 'samples/'
37+
38+
- name: Perform CodeQL Analysis
39+
uses: github/codeql-action/analyze@v3
40+
with:
41+
category: "/language:${{matrix.language}}"
42+

0 commit comments

Comments
 (0)