docs: add setup-kosli-cli GitHub Action reference page#305
Conversation
|
Claude finished @mbevc1's task in 3m 37s —— View job Doc review for PR #305
Findings
What looks good
SummarySolid addition. One actionable improvement (missing |
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
|
I wonder if we should add it to the reference section? |
@mbevc1, yes. Just saw it. move in progress |
Add .mintlify/workflows/update-github-action-reference.md to keep integrations/github_action.md in sync with setup-cli-action releases. Add kosli-dev/setup-cli-action to the update-changelog workflow with its own instructions to surface only user-facing changes.
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Move the page from integrations/github_action.md to github-action-reference/setup_cli_action.md and add it as a Reference-tab item ordered after API Reference. Update cross-links and the update workflow to the new path.
Define IMAGE_NAME in the example job env and tag the build step so the kosli attest artifact command has a real image reference. Drop the redundant second link to the reference page in the CI/CD page.
675958f to
ea40afa
Compare
| KOSLI_TRAIL: ${{ github.sha }} | ||
| IMAGE_NAME: my-registry/my-image:latest | ||
| steps: | ||
| - name: Build and push Docker image |
There was a problem hiding this comment.
Improvement: Missing actions/checkout step. Without it, docker/build-push-action has no build context and the job will fail. Consider:
| - name: Build and push Docker image | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build and push Docker image |
| To use Kosli in [Github Actions](https://docs.github.com/en/actions) workflows, you can use the kosli [CLI setup action](https://github.com/marketplace/actions/setup-kosli-cli) to install the CLI on your Github Actions Runner. | ||
| Then, you can use all the [CLI commands](/client_reference) in your workflows. | ||
| To use Kosli in [Github Actions](https://docs.github.com/en/actions) workflows, you can use the [`setup-kosli-cli` GitHub Action](/github-action-reference/setup_cli_action) to install the CLI on your Github Actions Runner. | ||
| Then, you can use all the [CLI commands](/client_reference) in your workflows. See the GitHub Action reference for its inputs, outputs, and version-pinning options. |
There was a problem hiding this comment.
Suggestion: The second sentence links to the same page already linked in the first sentence. Consider trimming since users will see the inputs/outputs/version-pinning when they follow the first link:
| Then, you can use all the [CLI commands](/client_reference) in your workflows. See the GitHub Action reference for its inputs, outputs, and version-pinning options. | |
| To use Kosli in [Github Actions](https://docs.github.com/en/actions) workflows, you can use the [`setup-kosli-cli` GitHub Action](/github-action-reference/setup_cli_action) to install the CLI on your Github Actions Runner. | |
| Then, you can use all the [CLI commands](/client_reference) in your workflows. |
Summary
Adds a dedicated reference page for the
kosli-dev/setup-cli-actionGitHub Action, places it in the Reference section of the site, renames the confusingly-named Actions page, and wires up automation to keep everything current.Closes #304
Changes
github-action-reference/setup_cli_action.md(title "GitHub Action") — documents the action's purpose, supported runners, inputs (version,github-token), outputs (version), version-selection rules (incl. the YAML quoting caveat), an example job, and cross-links.config/navigation.json, ordered: CLI → API → GitHub Action → Terraform → Helm → Template → Policy.integrations/actions.md→integrations/kosli_actions.mdto disambiguate the Kosli "Actions" (if-this-then-that automations) page from the GitHub Action. Fixed its internal self-link and added a redirect/integrations/actions→/integrations/kosli_actions.integrations/ci_cd.md(GitHub tab) points to the new reference page.tutorials/attest_snyk.md— fixed a mislabeled "GitHub Actions integration" link that pointed at the Kosli Actions page; now points to the new GitHub Action reference.tutorials/unauthorized_iac_changes.md— updated the "Kosli Actions" link to the renamed path.Keeping it up to date
.mintlify/workflows/update-github-action-reference.md— weekly cron watchingkosli-dev/setup-cli-action, updates the reference page when the action's inputs/outputs/behavior/runners/usage change, and skips Dependabot/chore-only releases.update-changelog.mdnow also coverskosli-dev/setup-cli-action(tag["GitHub Action"]), with its own instructions to surface only user-facing changes and consolidate accumulated dependency-bump releases.Notes
mint broken-linkscurrently aborts on a pre-existing syntax error in the generated fileclient_reference/kosli_list_controls.md(unrelated to this PR). All links introduced here were verified manually against existing files.