Skip to content

Commit 6844baf

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 0fab91c commit 6844baf

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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: actions
20+
build-mode: none
21+
- language: javascript-typescript
22+
build-mode: none
23+
- language: python
24+
build-mode: none
25+
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v4
29+
30+
# Initializes the CodeQL tools for scanning.
31+
- name: Initialize CodeQL
32+
uses: github/codeql-action/init@v3
33+
with:
34+
languages: ${{ matrix.language }}
35+
build-mode: ${{ matrix.build-mode }}
36+
# If you wish to specify custom queries, you can do so here or in a config file.
37+
# By default, queries listed here will override any specified in a config file.
38+
# Prefix the list here with "+" to use these queries and those in the config file.
39+
#
40+
# 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
41+
# queries: security-extended,security-and-quality
42+
43+
- name: Perform CodeQL Analysis
44+
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)