Skip to content

Commit 2888973

Browse files
committed
Update CodeQL action from Bootstrap
1 parent 672d987 commit 2888973

1 file changed

Lines changed: 20 additions & 3 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,39 @@
1-
name: Code Scanning - Action
1+
name: "CodeQL"
22

33
on:
44
push:
5+
branches:
6+
- master
7+
pull_request:
8+
# The branches below must be a subset of the branches above
9+
branches:
10+
- master
511
schedule:
612
- cron: "0 0 * * 0"
713

814
jobs:
9-
CodeQL-Build:
15+
analyze:
16+
name: Analyze
1017
runs-on: ubuntu-latest
1118

1219
steps:
1320
- name: Checkout repository
1421
uses: actions/checkout@v2
22+
with:
23+
# We must fetch at least the immediate parents so that if this is
24+
# a pull request then we can checkout the head.
25+
fetch-depth: 2
26+
27+
# If this run was triggered by a pull request event, then checkout
28+
# the head of the pull request instead of the merge commit.
29+
- run: git checkout HEAD^2
30+
if: ${{ github.event_name == 'pull_request' }}
1531

32+
# Initializes the CodeQL tools for scanning.
1633
- name: Initialize CodeQL
1734
uses: github/codeql-action/init@v1
1835
with:
19-
languages: javascript
36+
languages: "javascript"
2037

2138
- name: Autobuild
2239
uses: github/codeql-action/autobuild@v1

0 commit comments

Comments
 (0)