Skip to content

Commit

Permalink
chore: changelog for #1610
Browse files Browse the repository at this point in the history
  • Loading branch information
pd93 committed Apr 29, 2024
1 parent c81dbda commit cd259a7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
the
[Map Variables experiment](https://taskfile.dev/experiments/map-variables/) is
enabled (#1612 by @pd93).
- Added support for environment variables in the templating engine in `includes`
(#1610 by @vmaerten).

## v3.36.0 - 2024-04-08

Expand Down
7 changes: 5 additions & 2 deletions website/docs/experiments/remote_taskfiles.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ tasks:
and you run `task my-remote-namespace:hello`, it will print the text: "Hello
from the remote Taskfile!" to your console.

URL is processed by the templating system, so you can reference environment variable in your URL to have authentication, for example :
The Taskfile location is processed by the templating system, so you can
reference environment variables in your URL if you need to add authentication.
For example:

```yaml
version: '3'
Expand All @@ -57,7 +59,8 @@ includes:
my-remote-namespace: https://{{.TOKEN}}@raw.githubusercontent.com/my-org/my-repo/main/Taskfile.yml
```

`TOKEN=my-token task my-remote-namespace:hello` will be resolved by Task to `https://[email protected]/my-org/my-repo/main/Taskfile.yml`
`TOKEN=my-token task my-remote-namespace:hello` will be resolved by Task to
`https://[email protected]/my-org/my-repo/main/Taskfile.yml`

## Security

Expand Down

0 comments on commit cd259a7

Please sign in to comment.