From 33b79dd63485aab192277f34daf9c1078a8b8351 Mon Sep 17 00:00:00 2001 From: Carlos Date: Wed, 9 Oct 2024 17:09:37 -0700 Subject: [PATCH] 186 enable GitHub codeql for c code (#215) * Create codeql-analysis.yml - making the custom codeql file. * Update codeql-analysis.yml - trying pip install . * Update codeql-analysis.yml - no pip install reqs. * Update codeql-analysis.yml - ahh, can't isntall need venv ? * Update codeql-analysis.yml - need those quotes... * Rename - apparently the file needs a new name. * Update codeql.yml - adding support for python too. --- .github/workflows/{codeql-analysis.yml => codeql.yml} | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) rename .github/workflows/{codeql-analysis.yml => codeql.yml} (86%) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql.yml similarity index 86% rename from .github/workflows/codeql-analysis.yml rename to .github/workflows/codeql.yml index 53fe0025..bad7c0fa 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql.yml @@ -20,7 +20,7 @@ jobs: strategy: fail-fast: false matrix: - language: [ 'c++' ] + language: [ 'c++', 'python' ] steps: - name: Checkout repository @@ -32,16 +32,19 @@ jobs: languages: ${{ matrix.language }} - name: Install Linux Dependencies + if: matrix.language == 'c++' run: | sudo apt-get update; sudo apt-get install -y libsnmp-dev libperl-dev; - name: Set up Python 3.10 + if: matrix.language == 'c++' uses: actions/setup-python@v5 with: python-version: "3.10" - name: Build Python Extension + if: matrix.language == 'c++' run: | pip install .