Ver código fonte

GitHub: Update CodeQL workflow to use version 2 actions.

Jonatan Antoni 3 anos atrás
pai
commit
969f6fc3ec
1 arquivos alterados com 5 adições e 9 exclusões
  1. 5 9
      .github/workflows/codeql-analysis.yml

+ 5 - 9
.github/workflows/codeql-analysis.yml

@@ -28,25 +28,21 @@ 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
        cd CMSIS/CoreValidation/Tests
        python3 build.py -c GCC -o low build
 
     - name: Perform CodeQL Analysis
-      uses: github/codeql-action/analyze@v1
+      uses: github/codeql-action/analyze@v2