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

Extra flags via environment variables #35

Closed
rgreinho opened this issue May 25, 2020 · 3 comments
Closed

Extra flags via environment variables #35

rgreinho opened this issue May 25, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@rgreinho
Copy link

Can you provide an example with extras arguments via environment variables?

I have been trying to pass the --validate-maintainers=false, but all my attempts were unsuccessful. The documentation mentions that it is possible to use environment variables but they seem ignored by the action.

Here is my step:

- name: Run chart-testing (lint)
   id: lint
   env:
     CT_VALIDATE_MAINTAINERS: false 
   uses: helm/chart-testing-action@master
   with:
     command: lint
@unguiculus
Copy link
Member

Not sure if environment vairable make it through to the ct process. I'd suggest you use a custom config file for ct.

@scottrigby scottrigby added the enhancement New feature or request label Jul 25, 2020
@scottrigby
Copy link
Member

Env vars don't currently make it to ct, because chart-testing-action runs ct in a container. But if this enhancement were added to this action it could also solve other use cases like #36.

@davidkarlsen
Copy link
Member

you should be able to pass env-vars as usual now, and the action no longer runs in a container.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants