Skip to content

Commit 2b8d5f4

Browse files
committed
Add CodeQL analysis configuration
This should enabled automated code analysis of all future pull requests. Based on CodeQL's recommended configuration for this repository.
1 parent 67b408d commit 2b8d5f4

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Copyright Kani Contributors
2+
# SPDX-License-Identifier: Apache-2.0 OR MIT
3+
name: "CodeQL"
4+
on: pull_request
5+
6+
jobs:
7+
analyze:
8+
name: Analyze (${{ matrix.language }})
9+
runs-on: ubuntu-latest
10+
permissions:
11+
actions: read
12+
contents: read
13+
security-events: write
14+
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
include:
19+
language:
20+
- language: actions
21+
build-mode: none
22+
- language: javascript-typescript
23+
build-mode: none
24+
- language: python
25+
build-mode: none
26+
27+
steps:
28+
- name: Checkout
29+
uses: actions/checkout@v4
30+
31+
# Initializes the CodeQL tools for scanning.
32+
- name: Initialize CodeQL
33+
uses: github/codeql-action/init@v3
34+
with:
35+
languages: ${{ matrix.language }}
36+
build-mode: ${{ matrix.build-mode }}
37+
# If you wish to specify custom queries, you can do so here or in a config file.
38+
# By default, queries listed here will override any specified in a config file.
39+
# Prefix the list here with "+" to use these queries and those in the config file.
40+
#
41+
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
42+
# queries: security-extended,security-and-quality
43+
44+
- name: Perform CodeQL Analysis
45+
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)