Skip to content

Commit a92d533

Browse files
authored
Create codeql-analysis.yml
1 parent dffe11e commit a92d533

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

codeql-analysis.yml

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

0 commit comments

Comments
 (0)