-
Bug
-
Resolution: Done
-
Minor
-
None
-
None
-
False
-
None
-
False
-
tkn pac resolve -f properly ask to provide a github token in pipelinerun that has the {{ git_auth_secret }} pac variable.
-
-
Description of problem:
when running tkn pac resolve -f to a directory it shoul detect the git auth secret and ask user to provide one, we only do this currently when the user is specifying the template directly instead of the directory.
Prerequisites (if any, like setup, operators/versions):
Steps to Reproduce
tkn pac resolve -f .tekton/
if you have a {{ git_auth_secret }} in there it should ask you to provide a secret
Actual results:
Expected results:
% tkn pac generate ? Enter the Git event type for triggering the pipeline: Pull Request ? Enter the target GIT branch for the Pull Request (default: main): ✓ A basic template has been created in /Users/chmouel/GIT/go/src/github.com/chmouel/scratchmyback/.tekton/pull-request.yaml, feel free to customize it. ℹ You can test your pipeline by pushing generated template to your git repository % tkn pac resolve -f . ? We have detected a git_auth_secret in your PipelineRun. Would you like to provide a API token for the git_clone task? (Y/n)
Reproducibility (Always/Intermittent/Only Once):
Acceptance criteria:
Definition of Done:
Build Details:
Additional info (Such as Logs, Screenshots, etc):