Skip to content

Commit d58f7d2

Browse files
Create codeql-analysis.yml
1 parent 10804b1 commit d58f7d2

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
schedule:
9+
- cron: '00 11 * * 1'
10+
11+
jobs:
12+
analyze:
13+
name: Analyze
14+
runs-on: ubuntu-latest
15+
permissions:
16+
actions: read
17+
contents: read
18+
security-events: write
19+
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
language: ['csharp', 'javascript']
24+
25+
steps:
26+
- name: Checkout repository
27+
uses: actions/checkout@v3
28+
29+
- name: Initialize CodeQL
30+
uses: github/codeql-action/init@v2
31+
with:
32+
languages: ${{ matrix.language }}
33+
- name: Autobuild
34+
uses: github/codeql-action/autobuild@v2
35+
36+
# ℹ️ Command-line programs to run using the OS shell.
37+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
38+
39+
# If the Autobuild fails above, remove it and uncomment the following three lines.
40+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
41+
42+
# - run: |
43+
# echo "Run, Build Application using script"
44+
# ./location_of_script_within_repo/buildscript.sh
45+
46+
- name: Perform CodeQL Analysis
47+
uses: github/codeql-action/analyze@v2

0 commit comments

Comments
 (0)