Valentin Maerten 25fc28927d fix(remote): refuse a redirect that drops TLS
The scheme was only checked on the URL the user wrote. A server answering
an https URL with a redirect to http was followed by the client without
any further check, so both the HEAD probe and the download travelled in
the clear, and a network attacker could substitute the Taskfile that is
about to be executed.

CheckRedirect now refuses an https to http hop. --insecure does not
loosen it: requesting an http entrypoint is the user's decision, being
sent to one is the server's. Setting CheckRedirect also replaces Go's
default cap, so the ten-hop limit is kept explicitly.

The three call sites turned almost every client error into a generic
download failure, which would have hidden the reason; TaskfileNotSecureError
is now passed through, with wording of its own for the redirect case since
--insecure is not a way out of it.
2026-08-23 13:06:37 +02:00
2026-06-29 14:13:37 +00:00
2025-05-01 18:43:43 +01:00
2026-06-29 14:13:37 +00:00
2026-08-11 22:09:25 +02:00
2025-04-19 12:55:22 +01:00
2026-08-11 22:09:25 +02:00
2024-08-14 08:37:05 -05:00
2017-02-28 09:15:25 -03:00

Task: The Modern Task Runner

A fast, cross-platform build tool inspired by Make, designed for modern workflows.

InstallationGetting StartedDocsTwitterBlueskyMastodonDiscord

Gold Sponsors

Community Sponsors

JetBrains logo
Package hosting provided by Cloudsmith. Tooling provided by JetBrains.
Description
A task runner / simpler Make alternative written in Go
Readme MIT 43 MiB
Languages
Go 83.8%
TypeScript 4.8%
Vue 4.5%
Shell 3.9%
Nushell 1.3%
Other 1.7%