Skip to content

Commit 716ea35

Browse files
Create codeql-analysis.yml
1 parent ed75eff commit 716ea35

1 file changed

Lines changed: 71 additions & 0 deletions

File tree

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ 'master', 'v[0-9]*' ]
17+
paths-ignore:
18+
- webapp/public/vs/language/typescript/tsWorker.js
19+
- docs/static/tutorial-tool/vs
20+
pull_request:
21+
# The branches below must be a subset of the branches above
22+
branches: [ master ]
23+
schedule:
24+
- cron: '34 6 * * 0'
25+
workflow_call:
26+
27+
# Permissions required by OpenID Connect to access Azure.
28+
permissions:
29+
security-events: write
30+
31+
jobs:
32+
analyze:
33+
name: Analyze
34+
runs-on: ubuntu-latest
35+
36+
strategy:
37+
fail-fast: false
38+
matrix:
39+
language: [ 'javascript', 'typescript']
40+
41+
steps:
42+
- name: Checkout repository
43+
uses: actions/checkout@main
44+
45+
# Initializes the CodeQL tools for scanning.
46+
- name: Initialize CodeQL
47+
uses: github/codeql-action/init@v3
48+
with:
49+
languages: ${{ matrix.language }}
50+
51+
config: |
52+
# Ignore the monaco files in the scan
53+
paths-ignore:
54+
- docs/static/tutorial-tool/vs
55+
)
56+
- name: Autobuild
57+
uses: github/codeql-action/autobuild@v3
58+
59+
# ℹ️ Command-line programs to run using the OS shell.
60+
# 📚 https://git.io/JvXDl
61+
62+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
63+
# and modify them (or add more) to build your code if your project
64+
# uses a compiled language
65+
66+
#- run: |
67+
# make bootstrap
68+
# make release
69+
70+
- name: Perform CodeQL Analysis
71+
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)