Skip to content

Commit c682e35

Browse files
authored
chore: add codeql workflow (#26)
* chore: add codeql workflow * chore: add codeql workflow v2 * chore: add codeql workflow v3 * chore: change pull request job name * chore: change codeql triggers * chore: change PR action name
1 parent a9cec06 commit c682e35

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

.github/workflows/codeql.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ main, develop ]
6+
pull_request:
7+
branches: [ main, develop ]
8+
9+
jobs:
10+
CodeQL-Build:
11+
name: Analyze
12+
runs-on: ubuntu-latest
13+
permissions:
14+
security-events: write
15+
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
language: [ 'javascript' ]
20+
21+
steps:
22+
- name: Checkout repository
23+
uses: actions/checkout@v3
24+
25+
- name: Initialize CodeQL
26+
uses: github/codeql-action/init@v2
27+
with:
28+
languages: ${{ matrix.language }}
29+
30+
- name: Perform CodeQL Analysis
31+
uses: github/codeql-action/analyze@v2
32+
with:
33+
category: "/language:${{matrix.language}}"

.github/workflows/pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ concurrency:
66
cancel-in-progress: true
77

88
jobs:
9-
build_and_deploy:
9+
Validate:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout

0 commit comments

Comments
 (0)