|
20 | 20 | golang_version: |
21 | 21 | required: true |
22 | 22 | 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-* |
30 | 30 |
|
31 | 31 |
|
32 | 32 | jobs: |
33 | 33 | # 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 |
37 | 37 |
|
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 |
56 | 56 |
|
57 | 57 | analyze: |
58 | | - needs: |
59 | | - - variables |
| 58 | + # needs: |
| 59 | + # - variables |
60 | 60 | name: Analyze Go code with CodeQL |
61 | 61 | if: always() |
62 | 62 | runs-on: ubuntu-latest |
|
71 | 71 | - name: Install Go |
72 | 72 | uses: actions/setup-go@v5 |
73 | 73 | with: |
74 | | - go-version: ${{ needs.variables.outputs.golang_version }} |
| 74 | + go-version: ${{ inputs.golang_version }} |
75 | 75 |
|
76 | 76 | - name: Initialize CodeQL |
77 | 77 | uses: github/codeql-action/init@v3 |
|
0 commit comments