File tree Expand file tree Collapse file tree 3 files changed +4
-36
lines changed Expand file tree Collapse file tree 3 files changed +4
-36
lines changed Original file line number Diff line number Diff line change 3636 golang_version : ${{ needs.variables.outputs.golang_version }}
3737
3838 code-scanning :
39+ needs :
40+ - variables
3941 uses : ./.github/workflows/code_scanning.yaml
4042 with :
4143 golang_version : ${{ needs.variables.outputs.golang_version }}
Original file line number Diff line number Diff line change 2020 golang_version :
2121 required : true
2222 type : string
23- pull_request :
24- types :
25- - opened
26- - synchronize
27- branches :
28- - main
29- - release-*
30-
3123
3224jobs :
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
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
56-
5725 analyze :
58- needs :
59- - variables
6026 name : Analyze Go code with CodeQL
6127 if : always()
6228 runs-on : ubuntu-latest
7137 - name : Install Go
7238 uses : actions/setup-go@v5
7339 with :
74- go-version : ${{ needs.variables.outputs .golang_version }}
40+ go-version : ${{ inputs .golang_version }}
7541
7642 - name : Initialize CodeQL
7743 uses : github/codeql-action/init@v3
Original file line number Diff line number Diff line change 7474
7575 - name : Send Slack alert notification
7676 id : slack
77- if : ${{ failure() }}
77+ if : false
78787979 env :
8080 SLACK_BOT_TOKEN : ${{ secrets.SLACK_BOT_TOKEN }}
You can’t perform that action at this time.
0 commit comments