-
Notifications
You must be signed in to change notification settings - Fork 345
cml-runner self-hosted issues #721
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
Comments
Variables stored in the GitHub Actions self–hosted runner We can use The same goes for GitLab and the Shellenv --ignore-environment ./run.sh Node JSIt would suffice to filter out the environment on Line 13 in 2e9a21d
Lines 227 to 237 in 2e9a21d
|
Why do we exactly want this feature @casperdcl ? |
just realised this is also a problem on all runners (not just manual self-hosted) jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: iterative/setup-cml@v1
- uses: actions/checkout@v2
- run: |
cml runner --labels=cml-runner --cloud=aws --cloud-type=t2.micro
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
REPO_TOKEN: ${{ secrets.CML_CI_TOKEN }}
train:
runs-on: [self-hosted, cml-runner]
steps:
- run: env # why does this list AWS_ACCESS_KEY_ID & AWS_SECRET_ACCESS_KEY ?? should really either
|
What do you mean @casperdcl ? These envs are set by the TPI with the via cml.sh which runs exec on cml runner and starts the GitHub runner with spawn. The default for child_process.spawn is to inherit process.env Line 267 in 68ddbe4
Maybe you want to override that by adding |
I miss read that, I suspect the above is how they are populated. I agree they probably shouldn't be there and the user should re-authenticate if they need them so there isn't any accidental use of creds that are meant for cml to create/run/destroy instances. |
There is not a lot of work to do here. |
~/.cml/cml-*/
is not named according to--name
~/.cml/cml-*/
is not cleaned up on exit (should be cleaned esp. if no--name
)~/.cml/
(Runner package is downloaded every single time #615)cml runner --env
flag similar todocker run --env
)cml runner --user
flag similar todocker run --user
)The text was updated successfully, but these errors were encountered: