From d1d81cdd8e6d9507a9fecb4649eb1efc54cd393b Mon Sep 17 00:00:00 2001 From: Inada Naoki Date: Tue, 9 May 2023 09:33:59 +0000 Subject: [PATCH 1/2] CI: Update codeql build. --- .github/workflows/codeql.yml | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 90a8e5b0..53004c86 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -17,26 +17,22 @@ jobs: contents: read security-events: write - strategy: - fail-fast: false - matrix: - language: [ python, cpp ] - steps: - name: Checkout uses: actions/checkout@v3 - name: Initialize CodeQL uses: github/codeql-action/init@v2 - with: - languages: ${{ matrix.language }} - queries: +security-and-quality + # with: + # languages: ${{ matrix.language }} + # queries: +security-and-quality + + # - name: Autobuild + # uses: github/codeql-action/autobuild@v2 - - name: Autobuild - uses: github/codeql-action/autobuild@v2 - if: ${{ matrix.language == 'python' || matrix.language == 'cpp' }} + - name: Build + run: | + python setup.py develop - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v2 - with: - category: "/language:${{ matrix.language }}" From a157d73c447d298568a81ae7e3156e3ac4db4020 Mon Sep 17 00:00:00 2001 From: Inada Naoki Date: Tue, 9 May 2023 11:20:30 +0000 Subject: [PATCH 2/2] Use build_ext instead of develop --- .github/workflows/codeql.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 53004c86..ddc6d6e2 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -32,7 +32,7 @@ jobs: - name: Build run: | - python setup.py develop + python setup.py build_ext -if - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v2