Skip to content

Commit ea8b77c

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

File tree

3 files changed

+4
-36
lines changed

3 files changed

+4
-36
lines changed

.github/workflows/basic-checks.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ jobs:
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 }}

.github/workflows/code_scanning.yaml

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -20,43 +20,9 @@ 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-*
30-
3123

3224
jobs:
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
@@ -71,7 +37,7 @@ jobs:
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

.github/workflows/e2e.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474

7575
- name: Send Slack alert notification
7676
id: slack
77-
if: ${{ failure() }}
77+
if: false
7878
uses: slackapi/[email protected]
7979
env:
8080
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

0 commit comments

Comments
 (0)