From e45862549b3d9df03498eb012d46107f9476d273 Mon Sep 17 00:00:00 2001 From: Mathew Payne <2772944+GeekMasher@users.noreply.github.com> Date: Wed, 30 Apr 2025 12:54:10 +0100 Subject: [PATCH] feat: Update codeql-dynamic docs and on events --- .github/workflows/codeql-dynamic.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/codeql-dynamic.yml b/.github/workflows/codeql-dynamic.yml index 6e54c32..4cc79fb 100644 --- a/.github/workflows/codeql-dynamic.yml +++ b/.github/workflows/codeql-dynamic.yml @@ -1,7 +1,9 @@ name: "CodeQL Analysis" on: + # Makes the workflow reusable / callable from other workflows workflow_call: + workflow_dispatch: jobs: create-matrix: @@ -9,6 +11,8 @@ jobs: outputs: matrix: ${{ steps.set-matrix.outputs.languages }} steps: + # This step gets the languages for the repository and creates a supported + # CodeQL language list that gets passed into the analyze step - name: Get languages from repo id: set-matrix uses: advanced-security/set-codeql-language-matrix@v1 @@ -18,6 +22,7 @@ jobs: analyze: needs: create-matrix + # Check if there are no CodeQL supported languages if: ${{ needs.create-matrix.outputs.matrix != '[]' }} name: Analyze runs-on: ubuntu-latest @@ -28,7 +33,8 @@ jobs: strategy: fail-fast: false - matrix: + matrix: + # Create a matrix build for all supported languages language: ${{ fromJSON(needs.create-matrix.outputs.matrix) }} steps: