GitHub: Update CodeQL workflow to use version 2 actions.
@@ -28,20 +28,16 @@ jobs:
contents: read
security-events: write
- strategy:
- fail-fast: false
- matrix:
- language: [ 'cpp' ]
-
steps:
- name: Checkout repository
uses: actions/checkout@v2
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
- uses: github/codeql-action/init@v1
+ uses: github/codeql-action/init@v2
with:
- languages: ${{ matrix.language }}
+ languages: cpp
+ queries: security-and-quality
- run: |
ln -s /root/.rtebuild /github/home/.rtebuild
@@ -49,4 +45,4 @@ jobs:
python3 build.py -c GCC -o low build
- name: Perform CodeQL Analysis
- uses: github/codeql-action/analyze@v1
+ uses: github/codeql-action/analyze@v2
