sudo apt-get install meson
# Initializes the CodeQL tools for scanning.
- - name: Initialize CodeQL
+ - if: matrix.language == 'c-cpp'
+ name: Initialize CodeQL C
uses: github/codeql-action/init@v2
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.
-
- # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
- # queries: security-extended,security-and-quality
-
+ languages: 'c-cpp'
+ - if: matrix.language == 'python'
+ name: Initialize CodeQL Python
+ uses: github/codeql-action/init@v2
+ with:
+ languages: 'python'
+ config-file: ./.github/codeql/codeql-config.yml
+
- name: meson build
run: |
- meson setup --force-fallback-for=libnvme .build
+ meson setup --force-fallback-for=libnvme,json-c .build
ninja -C .build
- name: Perform CodeQL Analysis