Skip to content

CodeQL

CodeQL #7

Workflow file for this run

name: "CodeQL"
on:
workflow_dispatch:
push:
branches:
- master
- main
- develop
pull_request:
# Excluded path: add the paths you want to ignore instead of deleting the workflow
paths-ignore:
- '.github/workflows/*.yml'
- 'tests/*'
jobs:
analyse:
name: Analyse
strategy:
matrix:
sdk: [ "$NANOSP_SDK" ]
#'cpp' covers C and C++
language: [ 'cpp' ]
runs-on: ubuntu-latest
container:
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder-lite:latest
steps:
- name: Clone
uses: actions/checkout@v3
- name: Explore
run: |
apk add tree
tree / > /tmp/tree.txt
- name: Upload tree
uses: actions/upload-artifact@v3
with:
name: tree
path: /tmp/tree.txt
- name: Create volume archive
run: |
tar cvzf /tmp/volume.tar.gz /__t
- name: Upload volume
uses: actions/upload-artifact@v3
with:
name: volume
path: /tmp/volume.tar.gz
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
queries: security-and-quality
# CodeQL will create the database during the compilation
- name: Build
run: |
make BOLOS_SDK=${{ matrix.sdk }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2