Skip to content

Commit 750188e

Browse files
Create codeql-analysis.yml (#135)
1 parent 4eca550 commit 750188e

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
schedule:
9+
- cron: '0 6 * * 1'
10+
11+
jobs:
12+
analyze:
13+
name: Analyze
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
language: ['javascript']
20+
# Learn more...
21+
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
22+
23+
steps:
24+
- name: Checkout repository
25+
uses: actions/checkout@v2
26+
with:
27+
# We must fetch at least the immediate parents so that if this is
28+
# a pull request then we can checkout the head.
29+
fetch-depth: 2
30+
31+
# If this run was triggered by a pull request event, then checkout
32+
# the head of the pull request instead of the merge commit.
33+
- run: git checkout HEAD^2
34+
if: ${{ github.event_name == 'pull_request' }}
35+
36+
# Initializes the CodeQL tools for scanning.
37+
- name: Initialize CodeQL
38+
uses: github/codeql-action/init@v1
39+
with:
40+
languages: ${{ matrix.language }}
41+
42+
- name: Perform CodeQL Analysis
43+
uses: github/codeql-action/analyze@v1

0 commit comments

Comments
 (0)