-
-
Notifications
You must be signed in to change notification settings - Fork 617
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(remote): replace env variable in include remote URL
- Loading branch information
Showing
2 changed files
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,6 +48,17 @@ tasks: | |
and you run `task my-remote-namespace:hello`, it will print the text: "Hello | ||
from the remote Taskfile!" to your console. | ||
|
||
You can also reference environment variable in your URL to have authentication, for example : | ||
|
||
```yaml | ||
version: '3' | ||
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` | ||
|
||
## Security | ||
|
||
Running commands from sources that you do not control is always a potential | ||
|