Skip to content

Commit

Permalink
Fix CodeQL workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
cedelavergne-ledger committed Nov 6, 2023
1 parent 4f2c3d4 commit dd1bb09
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,35 +16,23 @@ jobs:
name: Analyse
runs-on: ubuntu-latest
container:
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder:latest
permissions:
actions: read
contents: read
security-events: write

strategy:
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder-legacy:latest
strategy:
matrix:
sdk: [ "$NANOS_SDK", "$NANOX_SDK", "$NANOSP_SDK" ]
#'cpp' covers C and C++
language: [ 'cpp' ]
sdk: ["$NANOS_SDK", "$NANOX_SDK", "$NANOSP_SDK"]

steps:
- name: Adding GitHub workspace as safe directory
run: git config --global --add safe.directory $GITHUB_WORKSPACE

- name: Clone
uses: actions/checkout@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
languages: cpp
queries: security-and-quality

# CodeQL will create the database during the compilation
- name: Build
run: |
make BOLOS_SDK=${{ matrix.sdk }}
make -j BOLOS_SDK=${{ matrix.sdk }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2

0 comments on commit dd1bb09

Please sign in to comment.