Skip to content

Commit

Permalink
Update codeql-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
arielswalker authored Sep 10, 2024
1 parent 44482cc commit 54ac129
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/codeql-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ jobs:
codeql:
name: Run CodeQL
runs-on: ${{ github.repository_owner == 'cFS' && 'linux' || 'ubuntu-latest' }}

strategy:
matrix:
target: ['coding-standard', 'security']
steps:

- name: Checkout bundle
Expand All @@ -21,12 +23,22 @@ jobs:
repository: arielswalker/cFS
submodules: true

- name: Set Unique Variables
id: set-target
run: |
if [ "${{ matrix.target }}" == "coding-standard" ]; then
echo "TARGET=coding-standard" >> $GITHUB_ENV
elif [ "${{ matrix.target }}" == "security" ]; then
echo "TARGET=security" >> $GITHUB_ENV
fi
- name: Make the Script Executable
run: chmod +x ./.github/scripts/codeql.sh

- name: Run CodeQL Analysis Script
run: ./.github/scripts/codeql.sh
env:
TARGET: ${{ env.TARGET }}
COMPONENT_PATH: 'cfe'
MAKE_COMMAND: 'make -j8'
TEST_FLAG: 'true'
Expand Down

0 comments on commit 54ac129

Please sign in to comment.