run codeql #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "CodeQL" | |
on: | |
push: | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
analyze: | |
name: Analyze | |
runs-on: ubuntu-latest | |
permissions: | |
security-events: write | |
actions: read | |
strategy: | |
fail-fast: false | |
matrix: | |
language: [c-cpp] | |
# Specify the container in which actions will run | |
container: | |
image: ghcr.io/tiiuae/px4-firmware-builder-base:latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.GH_REPO_TOKEN }} | |
submodules: recursive | |
path: 'px4-firmware/sources' | |
- name: check | |
run: | | |
echo "Checking out the px4-firmware repository" | |
ls -la /px4-firmware/sources | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: ${{ matrix.language }} | |
- name: Build | |
run: | | |
git config --global --add safe.directory '*' | |
./packaging/build_px4fw.sh ssrc_saluki-v2_default | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 |