Skip to content

Commit 36c57bf

Browse files
Create codeql-analysis.yml (#1045)
Signed-off-by: Nicolas MASSART <NicolasMassart@users.noreply.github.com>
1 parent 8d347c5 commit 36c57bf

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
---
2+
name: "CodeQL"
3+
4+
on:
5+
push:
6+
branches: [ main, release-* ]
7+
pull_request:
8+
# The branches below must be a subset of the branches above
9+
branches: [ main ]
10+
schedule:
11+
- cron: '19 15 * * 6'
12+
13+
jobs:
14+
analyze:
15+
name: Analyze
16+
runs-on: ubuntu-latest
17+
permissions:
18+
actions: read
19+
contents: read
20+
security-events: write
21+
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
language: [ 'javascript', 'python' ]
26+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
27+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
28+
29+
steps:
30+
- name: Checkout repository
31+
uses: actions/checkout@v3
32+
33+
# Initializes the CodeQL tools for scanning.
34+
- name: Initialize CodeQL
35+
uses: github/codeql-action/init@v2
36+
with:
37+
languages: ${{ matrix.language }}
38+
# If you wish to specify custom queries, you can do so here or in a config file.
39+
# By default, queries listed here will override any specified in a config file.
40+
# Prefix the list here with "+" to use these queries and those in the config file.
41+
42+
# 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
43+
# queries: security-extended,security-and-quality
44+
45+
46+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
47+
# If this step fails, then you should remove it and run the build manually (see below)
48+
- name: Autobuild
49+
uses: github/codeql-action/autobuild@v2
50+
51+
# ℹ️ Command-line programs to run using the OS shell.
52+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
53+
54+
# If the Autobuild fails above, remove it and uncomment the following three lines.
55+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
56+
57+
# - run: |
58+
# echo "Run, Build Application using script"
59+
# ./location_of_script_within_repo/buildscript.sh
60+
61+
- name: Perform CodeQL Analysis
62+
uses: github/codeql-action/analyze@v2

0 commit comments

Comments
 (0)