From ff52d1737ce971945eecbad33890719d729e04e6 Mon Sep 17 00:00:00 2001 From: GPK Date: Thu, 28 Nov 2024 10:00:27 +0000 Subject: [PATCH] Get workflow information in codeql workflow (#44450) * get workflow information in codeql * add github context --- .github/workflows/codeql-analysis.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index bf239bf1e8410..b5227f164e54d 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -36,6 +36,8 @@ jobs: selective-checks: name: Selective checks runs-on: ["ubuntu-22.04"] + env: + GITHUB_CONTEXT: ${{ toJson(github) }} outputs: needs-python-scans: ${{ steps.selective-checks.outputs.needs-python-scans }} needs-javascript-scans: ${{ steps.selective-checks.outputs.needs-javascript-scans }} @@ -47,6 +49,9 @@ jobs: persist-credentials: false - name: "Install Breeze" uses: ./.github/actions/breeze + - name: "Get information about the Workflow" + id: source-run-info + run: breeze ci get-workflow-info 2>> ${GITHUB_OUTPUT} - name: Selective checks id: selective-checks env: