Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Taskfile not trusted by user #1729

Closed
romanzdk opened this issue Jul 25, 2024 · 1 comment
Closed

Taskfile not trusted by user #1729

romanzdk opened this issue Jul 25, 2024 · 1 comment

Comments

@romanzdk
Copy link

I am running Taskfile in CI.

apt update && apt install -y curl
  sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d
  TASK_X_REMOTE_TASKFILES=1 poetry run ./bin/task cpn:cq

but I get an error:
go-task/task info installed ./bin/task task: Taskfile "https://gitlab.internal.company.com/cq-template/-/raw/main/Taskfile.yml" not trusted by user

@task-bot task-bot added the state: needs triage Waiting to be triaged by a maintainer. label Jul 25, 2024
@vmaerten
Copy link
Member

You can add the --yes flag to automatically accept the prompt
You can find this in the doc :

Sometimes you need to run Task in an environment that does not have an interactive terminal, so you are not able to accept a prompt. In these cases you are able to tell task to accept these prompts automatically by using the --yes flag. Before enabling this flag, you should:

Be sure that you trust the source and contents of the remote Taskfile.
Consider using a pinned version of the remote Taskfile (e.g. A link containing a commit hash) to prevent Task from automatically accepting a prompt that says a remote Taskfile has changed.

@task-bot task-bot removed the state: needs triage Waiting to be triaged by a maintainer. label Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants