Explorar o código

fix codeql complaining about missing headers needed by borg

thus:
- install requirements first
- codeql init
- build borg
- codeql analyzse
Thomas Waldmann %!s(int64=3) %!d(string=hai) anos
pai
achega
4fb6df813a
Modificáronse 1 ficheiros con 14 adicións e 18 borrados
  1. 14 18
      .github/workflows/codeql-analysis.yml

+ 14 - 18
.github/workflows/codeql-analysis.yml

@@ -37,16 +37,6 @@ jobs:
       uses: actions/setup-python@v2
       uses: actions/setup-python@v2
       with:
       with:
         python-version: 3.8
         python-version: 3.8
-    # Initializes the CodeQL tools for scanning.
-    - name: Initialize CodeQL
-      uses: github/codeql-action/init@v1
-      with:
-        languages: ${{ matrix.language }}
-        # If you wish to specify custom queries, you can do so here or in a config file.
-        # By default, queries listed here will override any specified in a config file.
-        # Prefix the list here with "+" to use these queries and those in the config file.
-        # queries: ./path/to/local/query, your-org/your-repo/queries@main
-
     - name: Cache pip
     - name: Cache pip
       uses: actions/cache@v2
       uses: actions/cache@v2
       with:
       with:
@@ -55,16 +45,22 @@ jobs:
         restore-keys: |
         restore-keys: |
             ${{ runner.os }}-pip-
             ${{ runner.os }}-pip-
             ${{ runner.os }}-
             ${{ runner.os }}-
-
-    # ℹ️ Command-line programs to run using the OS shell.
-    # 📚 https://git.io/JvXDl
-
-    - name: Install requirements, build and install Borg
+    - name: Install requirements
       run: |
       run: |
        sudo apt-get update
        sudo apt-get update
        sudo apt-get install -y libacl1-dev
        sudo apt-get install -y libacl1-dev
-       pip3 install -r requirements.d/development.txt
-       pip3 install -e .
-
+    # Initializes the CodeQL tools for scanning.
+    - name: Initialize CodeQL
+      uses: github/codeql-action/init@v1
+      with:
+        languages: ${{ matrix.language }}
+        # If you wish to specify custom queries, you can do so here or in a config file.
+        # By default, queries listed here will override any specified in a config file.
+        # Prefix the list here with "+" to use these queries and those in the config file.
+        # queries: ./path/to/local/query, your-org/your-repo/queries@main
+    - name: Build and install Borg
+      run: |
+        pip3 install -r requirements.d/development.txt
+        pip3 install -e .
     - name: Perform CodeQL Analysis
     - name: Perform CodeQL Analysis
       uses: github/codeql-action/analyze@v1
       uses: github/codeql-action/analyze@v1