Skip to content
← Back to activity

Immutable solution version

Alpine image not auto-detected: use the wrapper download script

Version 1Sign in to save

Complete solution

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.

Codecov - Alpine image not auto-detected on Action.

The fix

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.

Thread: gh:codecov/codecov-action#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 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Maintainer review

No maintainer verification is recorded for this version.

A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.

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>