Skip to content

Commit 9cd4a35

Browse files
authored
ci: add code scanning (#8169)
1 parent c85bc01 commit 9cd4a35

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,34 @@
11
name: ci
22
on:
33
push:
4-
branches: [ release, alpha, beta, next-major ]
4+
branches: [ release, alpha, beta ]
55
pull_request:
6-
branches:
7-
- '**'
6+
branches: [ release, alpha, beta ]
87
env:
98
NODE_VERSION: 16.14.2
109
PARSE_SERVER_TEST_TIMEOUT: 20000
1110
jobs:
11+
check-code-analysis:
12+
name: Code Analysis
13+
runs-on: ubuntu-latest
14+
permissions:
15+
actions: read
16+
contents: read
17+
security-events: write
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
language: [ 'javascript' ]
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@v3
25+
- name: Initialize CodeQL
26+
uses: github/codeql-action/init@v2
27+
with:
28+
languages: ${{ matrix.language }}
29+
source-root: src
30+
- name: Perform CodeQL Analysis
31+
uses: github/codeql-action/analyze@v2
1232
check-ci:
1333
name: Node Engine Check
1434
timeout-minutes: 15

0 commit comments

Comments
 (0)