From d96b478f726a14940a65324ca88137b05bc002be Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Thu, 13 Feb 2025 00:14:10 +0100 Subject: [PATCH] TOFIX: code scanning Signed-off-by: Evan Lezar --- .github/workflows/code_scanning.yaml | 58 ++++++++++++++-------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/.github/workflows/code_scanning.yaml b/.github/workflows/code_scanning.yaml index 78aacb91d..51295526a 100644 --- a/.github/workflows/code_scanning.yaml +++ b/.github/workflows/code_scanning.yaml @@ -20,39 +20,39 @@ on: golang_version: required: true type: string - pull_request: - types: - - opened - - synchronize - branches: - - main - - release-* + # pull_request: + # types: + # - opened + # - synchronize + # branches: + # - main + # - release-* jobs: # TODO: Is there a way that we can only invoke this if this is a PR? - optionalVariables: - if: ${{ github.event_name == 'pull_request' }} - uses: ./.github/workflows/variables.yaml + # optionalVariables: + # if: ${{ github.event_name == 'pull_request' }} + # uses: ./.github/workflows/variables.yaml - variables: - runs-on: ubuntu-latest - needs: - - optionalVariables - if: always() - outputs: - golang_version: ${{ steps.golang_output.outputs.golang_version }} - steps: - - name: Check out code - uses: actions/checkout@v4 - - id: golang_version - run: | - if [[ "${{ github.event_name }}" == "pull_request" ]]; then - GOLANG_VERSION="${{ needs.optionalVariables.output.golang_version }}" - else - GOLANG_VERSION="${{ inputs.golang_version}}" - fi - echo "golang_version=${GOLANG_VERSION##GOLANG_VERSION ?= }" >> $GITHUB_OUTPUT + # variables: + # runs-on: ubuntu-latest + # needs: + # - optionalVariables + # if: always() + # outputs: + # golang_version: ${{ steps.golang_output.outputs.golang_version }} + # steps: + # - name: Check out code + # uses: actions/checkout@v4 + # - id: golang_version + # run: | + # if [[ "${{ github.event_name }}" == "pull_request" ]]; then + # GOLANG_VERSION="${{ needs.optionalVariables.output.golang_version }}" + # else + # GOLANG_VERSION="${{ inputs.golang_version}}" + # fi + # echo "golang_version=${GOLANG_VERSION##GOLANG_VERSION ?= }" >> $GITHUB_OUTPUT analyze: needs: @@ -71,7 +71,7 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: ${{ needs.variables.outputs.golang_version }} + go-version: ${{ inputs.golang_version }} - name: Initialize CodeQL uses: github/codeql-action/init@v3