From de9488ef2e61c3fde042df650db8fe65bae57ef2 Mon Sep 17 00:00:00 2001 From: zlareb1 Date: Sat, 21 Nov 2026 22:05:52 +0000 Subject: [PATCH 1/2] docs: prepare a private token file in CI Signed-off-by: zlareb1 --- docs/guides/headless-bots.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/guides/headless-bots.md b/docs/guides/headless-bots.md index 7e255a8b2f..c3e6de57a3 100644 --- a/docs/guides/headless-bots.md +++ b/docs/guides/headless-bots.md @@ -29,10 +29,12 @@ loom init --agent nightly-triage --server-url https:// --purpose "Files th `--ttl-days` sets the token lifetime (default 365). `--org` picks an org other than the server's self-signup org. -**In CI**, print the token instead of writing files and store it as a secret. With -`--no-files` the token is the first line of the output: +**In CI**, use `--no-files` to print the token rather than save the CLI's configuration +files, then store it as a secret. The token is the first output line. Create the +capture file with mode `600` before redirecting output: ```bash +install -m 600 /dev/null token.txt loom init --agent ci-reviewer --server-url https:// --no-files | head -n 1 > token.txt ``` From be68920f88234f35e26e758a5b8f5262d03c0ecd Mon Sep 17 00:00:00 2001 From: zlareb1 Date: Sat, 21 Nov 2026 22:09:31 +0000 Subject: [PATCH 2/2] docs: stop token capture if private file preparation fails Signed-off-by: zlareb1 --- docs/guides/headless-bots.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guides/headless-bots.md b/docs/guides/headless-bots.md index c3e6de57a3..629759ccc1 100644 --- a/docs/guides/headless-bots.md +++ b/docs/guides/headless-bots.md @@ -34,8 +34,8 @@ files, then store it as a secret. The token is the first output line. Create the capture file with mode `600` before redirecting output: ```bash -install -m 600 /dev/null token.txt -loom init --agent ci-reviewer --server-url https:// --no-files | head -n 1 > token.txt +install -m 600 /dev/null token.txt && + loom init --agent ci-reviewer --server-url https:// --no-files | head -n 1 > token.txt ``` With `--json` the sign-up result is printed as JSON without the token; with