Skip to content

Commit d96b478

Browse files
committed
TOFIX: code scanning
Signed-off-by: Evan Lezar <[email protected]>
1 parent 5fa9491 commit d96b478

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

.github/workflows/code_scanning.yaml

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -20,39 +20,39 @@ on:
2020
golang_version:
2121
required: true
2222
type: string
23-
pull_request:
24-
types:
25-
- opened
26-
- synchronize
27-
branches:
28-
- main
29-
- release-*
23+
# pull_request:
24+
# types:
25+
# - opened
26+
# - synchronize
27+
# branches:
28+
# - main
29+
# - release-*
3030

3131

3232
jobs:
3333
# TODO: Is there a way that we can only invoke this if this is a PR?
34-
optionalVariables:
35-
if: ${{ github.event_name == 'pull_request' }}
36-
uses: ./.github/workflows/variables.yaml
34+
# optionalVariables:
35+
# if: ${{ github.event_name == 'pull_request' }}
36+
# uses: ./.github/workflows/variables.yaml
3737

38-
variables:
39-
runs-on: ubuntu-latest
40-
needs:
41-
- optionalVariables
42-
if: always()
43-
outputs:
44-
golang_version: ${{ steps.golang_output.outputs.golang_version }}
45-
steps:
46-
- name: Check out code
47-
uses: actions/checkout@v4
48-
- id: golang_version
49-
run: |
50-
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
51-
GOLANG_VERSION="${{ needs.optionalVariables.output.golang_version }}"
52-
else
53-
GOLANG_VERSION="${{ inputs.golang_version}}"
54-
fi
55-
echo "golang_version=${GOLANG_VERSION##GOLANG_VERSION ?= }" >> $GITHUB_OUTPUT
38+
# variables:
39+
# runs-on: ubuntu-latest
40+
# needs:
41+
# - optionalVariables
42+
# if: always()
43+
# outputs:
44+
# golang_version: ${{ steps.golang_output.outputs.golang_version }}
45+
# steps:
46+
# - name: Check out code
47+
# uses: actions/checkout@v4
48+
# - id: golang_version
49+
# run: |
50+
# if [[ "${{ github.event_name }}" == "pull_request" ]]; then
51+
# GOLANG_VERSION="${{ needs.optionalVariables.output.golang_version }}"
52+
# else
53+
# GOLANG_VERSION="${{ inputs.golang_version}}"
54+
# fi
55+
# echo "golang_version=${GOLANG_VERSION##GOLANG_VERSION ?= }" >> $GITHUB_OUTPUT
5656

5757
analyze:
5858
needs:
@@ -71,7 +71,7 @@ jobs:
7171
- name: Install Go
7272
uses: actions/setup-go@v5
7373
with:
74-
go-version: ${{ needs.variables.outputs.golang_version }}
74+
go-version: ${{ inputs.golang_version }}
7575

7676
- name: Initialize CodeQL
7777
uses: github/codeql-action/init@v3

0 commit comments

Comments
 (0)