Skip to content

docs: explain --no-commit-info for cross-repository attestations - #583

Merged
mbevc1 merged 2 commits into
mainfrom
autopilot/8582120f
Dec 1, 2026
Merged

mbevc1 merged 2 commits into
mainfrom
autopilot/8582120f

Conversation

@mintlify

@mintlify mintlify Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Explains when and how to attest to a trail from a job in another repository with the new --no-commit-info flag, so attestations stop carrying the wrong commit and repository.

Based on feat(attest): add --no-commit-info to attest without CI commit and repo info.
GA: released in CLI v2.61.0 (kosli-dev/cli#1420).

Upstream (does not block this merge)

The generated kosli list trail-events reference (kosli-dev/cli, also in v2.61.0) splits its paging example into an empty accordion "list the next page of events, with the cursor the previous command printed" and a separate "and the same --sort and --page-limit" one.

@mintlify
mintlify Bot requested a review from a team as a code owner December 1, 2026 07:09
@mintlify

mintlify Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor Author

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
kosli 🟢 Ready View Preview Dec 1, 2026, 7:15 AM

💡 Tip: Enable Automations to automatically generate PRs for you.

@claude

claude Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @mintlify[bot]'s task in 55s —— View job


Follow-up review complete

Previous finding status:

  • ✅ Resolved — "or" implying any one flag suffices (integrations/ci_cd.md, repository-flags bullet). The new wording now requires all three of --repository, --repo-url, --repo-id to be set to record repository info, matching the generated kosli attest generic reference (--repo-id/--repo-url/--repository flag rows).

New changes in this push (adds the supported/unsupported commands sentence): verified against client_reference/ — --no-commit-info appears in kosli_attest_generic.md, junit, snyk, custom, sonar, sbom, jira, decision, and all four pullrequest_* pages, and is absent from kosli_attest_artifact.md and kosli_attest_in-toto.md. The new sentence is accurate.

No new issues found. Nothing further to flag; no inline threads needed resolving beyond the one addressed above.

Comment thread integrations/ci_cd.md Outdated
--no-commit-info
```

- Repository flags that you pass explicitly (`--repository`, `--repo-url`, `--repo-id`, `--repo-provider`, or their `KOSLI_` environment variables) are still sent. Use them to name the repository the trail belongs to.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Improvement: The "or" makes it sound as if any one of these flags is enough. The generated reference (kosli attest generic, line 35 and the --repo-id/--repo-url/--repository flag rows) says repository info is only recorded when all three of --repo-id, --repo-url and --repository are set. --repo-provider is optional. A reader who passes only --repository to name the trail's repo will end up with no repository info at all.

Suggested change
- Repository flags that you pass explicitly (`--repository`, `--repo-url`, `--repo-id`, `--repo-provider`, or their `KOSLI_` environment variables) are still sent. Use them to name the repository the trail belongs to.
- Repository flags that you pass explicitly (or set through their `KOSLI_` environment variables) are still sent. To name the repository the trail belongs to, set all three of `--repository`, `--repo-url`, and `--repo-id`; `--repo-provider` is optional.

@mbevc1
mbevc1 merged commit b7d8324 into main Dec 1, 2026
6 checks passed
@mbevc1
mbevc1 deleted the autopilot/8582120f branch December 1, 2026 09:19

This branch was successfully deployed

1 active deployment
staging — 2570286a Deployed Dec 1, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant