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

tkn-pac resolve with private remote HTTP URLs #1812

Open
mpreu opened this issue Nov 5, 2024 · 0 comments
Open

tkn-pac resolve with private remote HTTP URLs #1812

mpreu opened this issue Nov 5, 2024 · 0 comments

Comments

@mpreu
Copy link

mpreu commented Nov 5, 2024

Hi,

I use PAC with a GitHub Enterprise instance and task references like

pipelinesascode.tekton.dev/task: https://ghe.com/org/repo/blob/main/task.yaml

While these work fine in the cluster environment , I cannot get them to work with tkn-pac resolve for testing.

Using tkn-pac resolve -f run.yaml results in

Error: error getting remote task from pipelinerun annotations: remote task from uri: https://ghe.com/org/repo/blob/main/task.yaml cannot be parsed as a kubernetes resource: yaml: line 32: mapping values are not allowed in this context

I have to use the raw URLs, which have a constantly changing token ?token=XXX appended in GHE, or replace all references with local references. Both solutions are not really practical to work with. Adding a provider token with -t does not seem to help either.

Is this expected or is there a solution I am missing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant