Skip to content

Commit

Permalink
Update codeql.yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
nagdahimanshu committed Jun 4, 2024
1 parent 4eaa067 commit cd38635
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
---
name: "CodeQL"

on:
workflow_dispatch:
push:
pull_request:
branches:
- main
- develop

jobs:
ledger_app_analyse:
analyse:
name: Analyse
strategy:
matrix:
sdk: [ "$NANOS_SDK", "$NANOX_SDK", "$NANOSP_SDK", "$STAX_SDK" ]
sdk: ["$NANOS_SDK", "$NANOX_SDK", "$NANOSP_SDK", "STAX_SDK"]
language: [ 'cpp' ]
runs-on: ubuntu-latest
container:
Expand All @@ -22,17 +22,17 @@ jobs:
steps:
- name: Clone
uses: actions/checkout@v4
with:
submodules: recursive

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

- name: Build
run: |
make BOLOS_SDK=${{ matrix.sdk }}
make -j BOLOS_SDK=${{ matrix.sdk }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ ifeq ($(TARGET_NAME),$(filter $(TARGET_NAME),TARGET_STAX TARGET_FLEX))
DEFINES += ICONBITMAP=C_stax_$(NORMAL_NAME)_64px_bitmap
endif

ifneq ($(TARGET_NAME),TARGET_NANOS)
ifneq ($(TARGET_NAME), TARGET_STAX)
SDK_SOURCE_PATH += lib_ux
endif
endif

DEFINES += HAVE_SPRINTF

CURVE_APP_LOAD_PARAMS = secp256k1
Expand Down

0 comments on commit cd38635

Please sign in to comment.