-
Notifications
You must be signed in to change notification settings - Fork 373
Persist CPLN token for cpflow steps #738
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -96,6 +96,12 @@ runs: | |||||||||||||
| exit 1 | ||||||||||||||
| fi | ||||||||||||||
|
|
||||||||||||||
| # Keep the service-account token available to later cpflow/cpln steps. | ||||||||||||||
| # The profile stores org/default metadata, but cpflow direct API calls | ||||||||||||||
| # read CPLN_TOKEN before falling back to `cpln profile token`. | ||||||||||||||
| echo "::add-mask::${CPLN_TOKEN}" | ||||||||||||||
| printf 'CPLN_TOKEN=%s\n' "${CPLN_TOKEN}" >> "${GITHUB_ENV}" | ||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The
Suggested change
Non-blocking — the current form is safe for a JWT/Control Plane token. Flagging only because changing it later would be easy to forget. |
||||||||||||||
|
|
||||||||||||||
| # `cpln profile update` lists `create` as an alias (cpln profile --help) and is | ||||||||||||||
| # idempotent: it creates the profile if missing and updates it otherwise. Calling | ||||||||||||||
| # update directly avoids parsing the CLI's "already exists" English error text, | ||||||||||||||
|
|
||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NAME=VALUEline to the environment file would be silently truncated if the value ever contained an embedded newline. GitHub Actions documentation recommends the heredoc delimiter syntax for values that may span multiple lines.