Skip to content

Commit 842dc2e

Browse files
authored
Merge pull request #31 from BeyteFlow/codeQL
Create codeql-analysis.yml
2 parents ed23c96 + 5d1bfb2 commit 842dc2e

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: "CodeQL Analysis"
2+
3+
on:
4+
push:
5+
branches: [ "main" ] # Run on pushes to main
6+
pull_request:
7+
branches: [ "main" ] # Run on pull requests targeting main
8+
9+
jobs:
10+
analyze:
11+
name: Analyze
12+
runs-on: ubuntu-latest
13+
14+
permissions:
15+
contents: read # Required by the CodeQL Action
16+
security-events: write # Required to post findings
17+
18+
strategy:
19+
matrix:
20+
language: [ "javascript"] # Adjust to your repo's languages
21+
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@v4
25+
26+
- name: Initialize CodeQL
27+
uses: github/codeql-action/init@v3
28+
with:
29+
languages: ${{ matrix.language }}
30+
31+
- name: Autobuild
32+
uses: github/codeql-action/autobuild@v3
33+
34+
- name: Run CodeQL Analysis
35+
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)