Skip to content

Commit 5808968

Browse files
authored
Merge pull request #298 from rsksmart/codeql
Configure codeQL
2 parents 085dd1d + d7f57f3 commit 5808968

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ master, Stable-Test, QA-Test ]
6+
pull_request:
7+
branches: [ master, Stable-Test, QA-Test ]
8+
schedule:
9+
- cron: "0 6 * * *"
10+
11+
# Declare default permissions as read only.
12+
permissions: read-all
13+
14+
jobs:
15+
analyze:
16+
name: Analyze
17+
runs-on: ubuntu-latest
18+
permissions:
19+
actions: read
20+
contents: read
21+
security-events: write
22+
23+
strategy:
24+
fail-fast: false
25+
matrix:
26+
language: [ javascript ]
27+
28+
steps:
29+
- name: Checkout
30+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
31+
32+
- name: Initialize CodeQL
33+
uses: github/codeql-action/init@aa578102511db1f4524ed59b8cc2bae4f6e88195 #v3.27.6
34+
with:
35+
languages: ${{ matrix.language }}
36+
queries: +security-and-quality
37+
38+
- name: Autobuild
39+
uses: github/codeql-action/autobuild@aa578102511db1f4524ed59b8cc2bae4f6e88195 #v3.27.6
40+
41+
- name: Perform CodeQL Analysis
42+
uses: github/codeql-action/analyze@aa578102511db1f4524ed59b8cc2bae4f6e88195 #v3.27.6
43+
with:
44+
category: "/language:${{ matrix.language }}"

0 commit comments

Comments
 (0)