Skip to content

Commit 252ebaf

Browse files
authored
Merge pull request #127 from amplify-education/AT-8304-update-code-ql-to-v-2
Update CodeQL to v2.
2 parents 2b46c10 + d14bcb6 commit 252ebaf

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

.github/workflows/codeql-analysis.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ name: CodeQL
33

44
on:
55
push:
6-
branches: [master]
6+
branches: [main]
77
pull_request:
88
# The branches below must be a subset of the branches above
9-
branches: [master]
9+
branches: [main]
1010
schedule:
1111
- cron: 0 18 * * 3
1212

@@ -23,22 +23,17 @@ jobs:
2323
# a pull request then we can checkout the head.
2424
fetch-depth: 2
2525

26-
# If this run was triggered by a pull request event, then checkout
27-
# the head of the pull request instead of the merge commit.
28-
- run: git checkout HEAD^2
29-
if: ${{ github.event_name == 'pull_request' }}
30-
3126
# Initializes the CodeQL tools for scanning.
3227
- name: Initialize CodeQL
33-
uses: github/codeql-action/init@v1
28+
uses: github/codeql-action/init@v2
3429
# Override language selection by uncommenting this and choosing your languages
3530
# with:
3631
# languages: go, javascript, csharp, python, cpp, java
3732

3833
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
3934
# If this step fails, then you should remove it and run the build manually (see below)
4035
- name: Autobuild
41-
uses: github/codeql-action/autobuild@v1
36+
uses: github/codeql-action/autobuild@v2
4237

4338
# ℹ️ Command-line programs to run using the OS shell.
4439
# 📚 https://git.io/JvXDl
@@ -52,4 +47,4 @@ jobs:
5247
# make release
5348

5449
- name: Perform CodeQL Analysis
55-
uses: github/codeql-action/analyze@v1
50+
uses: github/codeql-action/analyze@v2

0 commit comments

Comments
 (0)