Skip to content

fix(coverage): pass --sha explicitly to Codecov uploader#479

Closed
p-targowicz wants to merge 2 commits into
masterfrom
fix/QA-1574-codecov-pass-sha
Closed

fix(coverage): pass --sha explicitly to Codecov uploader#479
p-targowicz wants to merge 2 commits into
masterfrom
fix/QA-1574-codecov-pass-sha

Conversation

@p-targowicz
Copy link
Copy Markdown
Contributor

Summary

Follow-up to #478.

After unsetting GITLAB_CI to prevent service auto-detection, the Codecov uploader can no longer infer the commit SHA from GitLab env vars, causing uploads to fail with Unable to detect SHA and slug.

Fix: pass --sha ${CI_COMMIT_SHA} explicitly so the uploader has everything it needs without relying on GitLab CI auto-detection.

Ticket: QA-1574

@p-targowicz p-targowicz force-pushed the fix/QA-1574-codecov-pass-sha branch 3 times, most recently from b7e3f96 to 4aea989 Compare May 4, 2026 17:01
Signed-off-by: Patryk Targowicz <patryk.targowicz@northern.tech>
Ticket: QA-1574
Signed-off-by: Patryk Targowicz <patryk.targowicz@northern.tech>
@p-targowicz p-targowicz force-pushed the fix/QA-1574-codecov-pass-sha branch from a500810 to e43402a Compare May 4, 2026 21:35
Add SHA256SUM verification for the codecov binary download across all
three coverage templates to prevent running a tampered binary.

Signed-off-by: Patryk Targowicz <patryk.targowicz@northern.tech>
Ticket: QA-1574
Signed-off-by: Patryk Targowicz <patryk.targowicz@northern.tech>
@p-targowicz p-targowicz reopened this May 13, 2026
@p-targowicz
Copy link
Copy Markdown
Contributor Author

#485

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant