Skip to content

Commit 105d810

Browse files
authored
Create codeql.yml
1 parent d30afb0 commit 105d810

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: "CodeQL Advanced"
2+
on:
3+
push:
4+
branches: [ "develop" ]
5+
pull_request:
6+
branches: [ "develop" ]
7+
schedule:
8+
- cron: '29 11 * * 0'
9+
jobs:
10+
analyze:
11+
name: Analyze (${{ matrix.language }})
12+
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
13+
permissions:
14+
security-events: write
15+
packages: read
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
include:
20+
- language: javascript-typescript
21+
build-mode: none
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@v4
25+
- name: Initialize CodeQL
26+
uses: github/codeql-action/init@v3
27+
with:
28+
languages: ${{ matrix.language }}
29+
build-mode: ${{ matrix.build-mode }}
30+
- if: matrix.build-mode == 'manual'
31+
shell: bash
32+
run: |
33+
echo 'If you are using a "manual" build mode for one or more of the' \
34+
'languages you are analyzing, replace this with the commands to build' \
35+
'your code, for example:'
36+
echo ' make bootstrap'
37+
echo ' make release'
38+
exit 1
39+
- name: Perform CodeQL Analysis
40+
uses: github/codeql-action/analyze@v3
41+
with:
42+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)