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

Overriding template path in update command #269

Open
jamesrosling opened this issue Aug 1, 2023 · 0 comments
Open

Overriding template path in update command #269

jamesrosling opened this issue Aug 1, 2023 · 0 comments

Comments

@jamesrosling
Copy link

jamesrosling commented Aug 1, 2023

Hi!

I'm having some issues in getting the cruft update command to work for a repository that needs credentials to be included in the template url to enable the repository to be cloned. The command will be called through a Backstage action class rather than the cli.

We're trying to use cruft to update project repos created with cruft, and the cruft update command is using the template url found in the .cruft.json file. We need to override this with the url containing auth credentials, as for security reasons this can't be a static value in the codebase.

Is there a way to have an input parameter in update to allow us to pass a new template url, or some way to override this template url without doing our own implementation of the update step?

Any help would be appreciated.

Cheers

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

1 participant