From 4eaa0673dc365c09c8ab0ff6fd77d1c588cc7512 Mon Sep 17 00:00:00 2001 From: nagdahimanshu Date: Tue, 4 Jun 2024 12:22:51 +0200 Subject: [PATCH] Integrate CodeQL --- .github/workflows/codeql.yml | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/codeql.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 00000000..b1537ce7 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,38 @@ +--- +name: "CodeQL" + +on: + push: + pull_request: + branches: + - main + - develop + +jobs: + ledger_app_analyse: + name: Analyse + strategy: + matrix: + sdk: [ "$NANOS_SDK", "$NANOX_SDK", "$NANOSP_SDK", "$STAX_SDK" ] + language: [ 'cpp' ] + runs-on: ubuntu-latest + container: + image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder-legacy:latest + + steps: + - name: Clone + uses: actions/checkout@v4 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: ${{ matrix.language }} + queries: security-and-quality + debug: true + + - name: Build + run: | + make BOLOS_SDK=${{ matrix.sdk }} + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 \ No newline at end of file