Skip to content

Commit d49a019

Browse files
fix(ci): add setup-go to SonarCloud workflow
The ci_sonarcloud.yml workflow has been failing on every push to main since April 21 (21 consecutive failures). The generate-coverage job was missing actions/setup-go, causing Go's auto-downloaded toolchain to lack the covdata tool needed for coverage instrumentation. Add actions/setup-go with GO_VERSION env var, matching the pattern used in ci_local.yml. Fixes complytime#245 Assisted-by: Cursor AI Signed-off-by: sonupreetam <spreetam@redhat.com> Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent d27e704 commit d49a019

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/ci_sonarcloud.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ permissions:
1010
issues: none
1111
pull-requests: none
1212

13+
env:
14+
GO_VERSION: 1.25
15+
1316
jobs:
1417
generate-coverage:
1518
name: Generate Coverage Report
@@ -18,6 +21,11 @@ jobs:
1821
- name: Check out
1922
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2023

24+
- name: Set up Go
25+
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
26+
with:
27+
go-version: "${{ env.GO_VERSION }}"
28+
2129
- name: Install Task
2230
uses: arduino/setup-task@b91d5d2c96a56797b48ac1e0e89220bf64044611 # v2.0.0
2331
with:

0 commit comments

Comments
 (0)