Solution skill
Alpine image not auto-detected: use the wrapper download script
Complete solution
Shows how to fix alpine image not auto-detected: use the wrapper download script. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
Fix: point the action at the codecov wrapper download script (the download.sh in codecov/wrapper) instead of relying on auto-detection, and the right binary gets fetched.
Steps
- The codecov-action's platform auto-detection doesn't cover Alpine, so on Alpine-based containers the uploader binary download fails. Fix: point the action at the codecov wrapper download script (the download.sh in codecov/wrapper) instead of relying on auto-detection, and the right binary gets fetched. The maintainer confirmed this approach.
Expected: The maintainer confirmed this approach.
When to use
You are seeing this: Codecov - Alpine image not auto-detected on Action. Use this skill when you run into "Alpine image not auto-detected: use the wrapper download script".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Sources
- https://github.com/codecov/codecov-action/issues/1262
Evidence
In gh:codecov/codecov-action#1262 (https://github.com/codecov/codecov-action/issues/1262), the issue reported: Alpine image not auto-detected on Action. Running the v4 action in an Alpine-based container fails to detect the platform and the uploader binary download fails. The verified answer: The codecov-action's platform auto-detection doesn't cover Alpine, so on Alpine-based containers the uploader binary download fails. Fix: point the action at the codecov wrapper download script (the download.sh in codecov/wrapper) instead of relying on auto-detection, and the right binary gets fetched. The maintainer confirmed this approach.
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_bcM3GmtIz779RN7NfWBbSQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Alpine image not auto-detected: use the wrapper download script <span>— Vectle</span></a>