Skip to content

Commit 5d111bd

Browse files
authored
Created CodeQL analysis configuration by modifying suggested template (#2811)
1 parent 8848d15 commit 5d111bd

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/codeql.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: "CodeQL analysis"
2+
3+
on:
4+
push:
5+
branches:
6+
- "main"
7+
- '[0-9].*'
8+
pull_request:
9+
branches:
10+
- "main"
11+
- '[0-9].*'
12+
schedule:
13+
- cron: '42 6 * * 3'
14+
15+
jobs:
16+
analyze:
17+
name: Analyze (${{ matrix.language }})
18+
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
19+
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
20+
permissions:
21+
security-events: write
22+
actions: read
23+
contents: read
24+
25+
strategy:
26+
fail-fast: false
27+
matrix:
28+
include:
29+
- language: java-kotlin
30+
build-mode: autobuild
31+
steps:
32+
- name: Checkout repository
33+
uses: actions/checkout@v4
34+
35+
# Initializes the CodeQL tools for scanning.
36+
- name: Initialize CodeQL
37+
uses: github/codeql-action/init@v3
38+
with:
39+
languages: ${{ matrix.language }}
40+
build-mode: ${{ matrix.build-mode }}
41+
42+
- name: Perform CodeQL Analysis
43+
uses: github/codeql-action/analyze@v3
44+
with:
45+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)