setup-jfrog-cli icon indicating copy to clipboard operation
setup-jfrog-cli copied to clipboard

feat: add `token` to output if available

Open faubion-hbo opened this issue 1 year ago • 1 comments

  • [x] All tests passed. ~If this feature is not already covered by the tests, I added new tests.~
  • [x] I used npm run format for formatting the code before submitting the pull request.

Description

allows other actions in a workflow to get at the token used to auth the CLI which is especially useful for OIDC auth

Solved problem

there isn't a way to get the token to use in other applications from the jf commands themselves, and the config is encrypted

Questions

  1. what description would be appropriate for the output? i wasn't sure how to word all the cases where a token would/would not be returned.
  2. what test can be added for this?

faubion-hbo avatar May 09 '24 17:05 faubion-hbo

CLA Assistant Lite bot:
Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request

github-actions[bot] avatar May 09 '24 17:05 github-actions[bot]