Skip to content

Commit cb81247

Browse files
committed
v3.44.0
1 parent b09c687 commit cb81247

File tree

12 files changed

+157
-9
lines changed

12 files changed

+157
-9
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
## Unreleased
3+
## v3.44.0 - 2025-06-08
44

55
- Added `uuid`, `randInt` and `randIntN` template functions (#1346, #2225 by
66
@pd93).

internal/version/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.43.3
1+
3.44.0

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@go-task/cli",
3-
"version": "3.43.3",
3+
"version": "3.44.0",
44
"description": "A task runner / simpler Make alternative written in Go",
55
"scripts": {
66
"postinstall": "go-npm install",

website/docs/changelog.mdx

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,35 @@ sidebar_position: 14
55

66
# Changelog
77

8+
## v3.44.0 - 2025-06-08
9+
10+
- Added `uuid`, `randInt` and `randIntN` template functions (#1346, #2225 by
11+
@pd93).
12+
- Added new `CLI_ARGS_LIST` array variable which contains the arguments passed
13+
to Task after the `--` (the same as `CLI_ARGS`, but an array instead of a
14+
string). (#2138, #2139, #2140 by @pd93).
15+
- Added `toYaml` and `fromYaml` templating functions (#2217, #2219 by @pd93).
16+
- Added `task` field the `--list --json` output (#2256 by @aleksandersh).
17+
- Added the ability to
18+
[pin included taskfiles](https://taskfile.dev/next/experiments/remote-taskfiles/#manual-checksum-pinning)
19+
by specifying a checksum. This works with both local and remote Taskfiles
20+
(#2222, #2223 by @pd93).
21+
- When using the
22+
[Remote Taskfiles experiment](https://github.com/go-task/task/issues/1317),
23+
any credentials used in the URL will now be redacted in Task's output (#2100,
24+
#2220 by @pd93).
25+
- Fixed fuzzy suggestions not working when misspelling a task name (#2192, #2200
26+
by @vmaerten).
27+
- Fixed a bug where taskfiles in directories containing spaces created
28+
directories in the wrong location (#2208, #2216 by @pd93).
29+
- Added support for dual JSON schema files, allowing changes without affecting
30+
the current schema. The current schemas will only be updated during releases.
31+
(#2211 by @vmaerten).
32+
- Improved fingerprint documentation by specifying that the method can be set at
33+
the root level to apply to all tasks (#2233 by @vmaerten).
34+
- Fixed some watcher regressions after #2048 (#2199, #2202, #2241, #2196 by
35+
@wazazaby, #2271 by @andreynering).
36+
837
## v3.43.3 - 2025-04-27
938

1039
Reverted the changes made in #2113 and #2186 that affected the

website/static/schema.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -684,6 +684,10 @@
684684
"vars": {
685685
"description": "A set of variables to apply to the included Taskfile.",
686686
"$ref": "#/definitions/vars"
687+
},
688+
"checksum": {
689+
"description": "The checksum of the file you expect to include. If the checksum does not match, the file will not be included.",
690+
"type": "string"
687691
}
688692
}
689693
}

website/versioned_docs/version-latest/changelog.mdx

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,35 @@ sidebar_position: 14
55

66
# Changelog
77

8+
## v3.44.0 - 2025-06-08
9+
10+
- Added `uuid`, `randInt` and `randIntN` template functions (#1346, #2225 by
11+
@pd93).
12+
- Added new `CLI_ARGS_LIST` array variable which contains the arguments passed
13+
to Task after the `--` (the same as `CLI_ARGS`, but an array instead of a
14+
string). (#2138, #2139, #2140 by @pd93).
15+
- Added `toYaml` and `fromYaml` templating functions (#2217, #2219 by @pd93).
16+
- Added `task` field the `--list --json` output (#2256 by @aleksandersh).
17+
- Added the ability to
18+
[pin included taskfiles](https://taskfile.dev/next/experiments/remote-taskfiles/#manual-checksum-pinning)
19+
by specifying a checksum. This works with both local and remote Taskfiles
20+
(#2222, #2223 by @pd93).
21+
- When using the
22+
[Remote Taskfiles experiment](https://github.com/go-task/task/issues/1317),
23+
any credentials used in the URL will now be redacted in Task's output (#2100,
24+
#2220 by @pd93).
25+
- Fixed fuzzy suggestions not working when misspelling a task name (#2192, #2200
26+
by @vmaerten).
27+
- Fixed a bug where taskfiles in directories containing spaces created
28+
directories in the wrong location (#2208, #2216 by @pd93).
29+
- Added support for dual JSON schema files, allowing changes without affecting
30+
the current schema. The current schemas will only be updated during releases.
31+
(#2211 by @vmaerten).
32+
- Improved fingerprint documentation by specifying that the method can be set at
33+
the root level to apply to all tasks (#2233 by @vmaerten).
34+
- Fixed some watcher regressions after #2048 (#2199, #2202, #2241, #2196 by
35+
@wazazaby, #2271 by @andreynering).
36+
837
## v3.43.3 - 2025-04-27
938

1039
Reverted the changes made in #2113 and #2186 that affected the

website/versioned_docs/version-latest/experiments/remote_taskfiles.mdx

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,11 @@ includes:
182182

183183
## Security
184184

185+
### Automatic checksums
186+
185187
Running commands from sources that you do not control is always a potential
186-
security risk. For this reason, we have added some checks when using remote
187-
Taskfiles:
188+
security risk. For this reason, we have added some automatic checks when using
189+
remote Taskfiles:
188190

189191
1. When running a task from a remote Taskfile for the first time, Task will
190192
print a warning to the console asking you to check that you are sure that you
@@ -209,6 +211,38 @@ flag. Before enabling this flag, you should:
209211
containing a commit hash) to prevent Task from automatically accepting a
210212
prompt that says a remote Taskfile has changed.
211213

214+
### Manual checksum pinning
215+
216+
Alternatively, if you expect the contents of your remote files to be a constant
217+
value, you can pin the checksum of the included file instead:
218+
219+
```yaml
220+
version: '3'
221+
222+
includes:
223+
included:
224+
taskfile: https://taskfile.dev
225+
checksum: c153e97e0b3a998a7ed2e61064c6ddaddd0de0c525feefd6bba8569827d8efe9
226+
```
227+
228+
This will disable the automatic checksum prompts discussed above. However, if
229+
the checksums do not match, Task will exit immediately with an error. When
230+
setting this up for the first time, you may not know the correct value of the
231+
checksum. There are a couple of ways you can obtain this:
232+
233+
1. Add the include normally without the `checksum` key. The first time you run
234+
the included Taskfile, a `.task/remote` temporary directory is created. Find
235+
the correct set of files for your included Taskfile and open the file that
236+
ends with `.checksum`. You can copy the contents of this file and paste it
237+
into the `checksum` key of your include. This method is safest as it allows
238+
you to inspect the downloaded Taskfile before you pin it.
239+
2. Alternatively, add the include with a temporary random value in the
240+
`checksum` key. When you try to run the Taskfile, you will get an error that
241+
will report the incorrect expected checksum and the actual checksum. You can
242+
copy the actual checksum and replace your temporary random value.
243+
244+
### TLS
245+
212246
Task currently supports both `http` and `https` URLs. However, the `http`
213247
requests will not execute by default unless you run the task with the
214248
`--insecure` flag. This is to protect you from accidentally running a remote

website/versioned_docs/version-latest/reference/cli.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ structure:
104104
"tasks": [
105105
{
106106
"name": "",
107+
"task": "",
107108
"desc": "",
108109
"summary": "",
109110
"up_to_date": false,

website/versioned_docs/version-latest/reference/schema.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ toc_max_heading_level: 5
3434
| `internal` | `bool` | `false` | Stops any task in the included Taskfile from being callable on the command line. These commands will also be omitted from the output when used with `--list`. |
3535
| `aliases` | `[]string` | | Alternative names for the namespace of the included Taskfile. |
3636
| `vars` | `map[string]Variable` | | A set of variables to apply to the included Taskfile. |
37+
| `checksum` | `string` | | The checksum of the file you expect to include. If the checksum does not match, the file will not be included. |
3738

3839
:::info
3940

0 commit comments

Comments
 (0)