Skip to content

docs: add setup-kosli-cli GitHub Action reference page#305

Merged
dangrondahl merged 5 commits into
mainfrom
docs/setup-cli-action-reference
Jul 3, 2026
Merged

docs: add setup-kosli-cli GitHub Action reference page#305
dangrondahl merged 5 commits into
mainfrom
docs/setup-cli-action-reference

Conversation

@dangrondahl

@dangrondahl dangrondahl commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a dedicated reference page for the kosli-dev/setup-cli-action GitHub 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

  • New reference page 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.
  • Reference tab placement — added as a new "GitHub Action Reference" item in config/navigation.json, ordered: CLI → API → GitHub Action → Terraform → Helm → Template → Policy.
  • Rename integrations/actions.mdintegrations/kosli_actions.md to 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.
  • Cross-links:
    • 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

  • New workflow .mintlify/workflows/update-github-action-reference.md — weekly cron watching kosli-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.md now also covers kosli-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-links currently aborts on a pre-existing syntax error in the generated file client_reference/kosli_list_controls.md (unrelated to this PR). All links introduced here were verified manually against existing files.

@dangrondahl dangrondahl requested a review from a team as a code owner July 3, 2026 10:04
@claude

claude Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Claude finished @mbevc1's task in 3m 37s —— View job


Doc review for PR #305

  • Read CLAUDE.md and doc-review skill
  • Read all changed docs files
  • Verify navigation config
  • Check for relative links, broken cross-links
  • Post review findings

Findings

github-action-reference/setup_cli_action.md

Category Issue
Improvement Example job (line 98) is missing actions/checkout@v4 as the first step. Without it, docker/build-push-action has no build context and the job will fail. Inline comment →

integrations/ci_cd.md

Category Issue
Suggestion Line 38 — the second sentence links to the same reference page already linked in the first sentence. Could be trimmed. Inline comment →

What looks good

  • Diátaxis compliance: The new reference page reads as a proper reference — inputs/outputs tables, version-selection rules, and concise usage examples. No tutorial content mixed in.
  • Navigation: github-action-reference/setup_cli_action is correctly placed in the Reference tab between API Reference and Terraform Reference.
  • Links: All internal links are root-relative (e.g., /client_reference, /integrations/ci_cd). No relative links.
  • Front matter: Complete with title, description, and icon.
  • Redirect: /integrations/actions/integrations/kosli_actions properly preserves old URLs after the rename.
  • Cross-links updated: attest_snyk.md and ci_cd.md now point to the correct pages.
  • Writing style: Active voice, imperative mood, "Kosli" (not "the Kosli platform"), American spelling. Consistent with CLAUDE.md conventions.
  • Automation: The new update-github-action-reference.md workflow and the changelog workflow update are well-scoped — they skip Dependabot/chore releases and only trigger on user-facing changes.

Summary

Solid addition. One actionable improvement (missing actions/checkout in the example job) and one minor suggestion (duplicate link in ci_cd.md). Everything else — navigation, links, front matter, writing style, Diátaxis classification — looks correct.

@mintlify

mintlify Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

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

Project Status Preview Updated (UTC)
kosli 🟢 Ready View Preview Jul 3, 2026, 10:07 AM

Comment thread github-action-reference/setup_cli_action.md
Comment thread integrations/github_action.md Outdated
@mbevc1

mbevc1 commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

I wonder if we should add it to the reference section?

Comment thread github-action-reference/setup_cli_action.md
Comment thread github-action-reference/setup_cli_action.md
Comment thread integrations/ci_cd.md Outdated
@dangrondahl

Copy link
Copy Markdown
Contributor Author

I wonder if we should add it to the reference section?

@mbevc1, yes. Just saw it. move in progress

Comment thread github-action-reference/setup_cli_action.md
Comment thread github-action-reference/setup_cli_action.md
Comment thread integrations/ci_cd.md Outdated
Comment thread integrations/ci_cd.md
Comment thread github-action-reference/setup_cli_action.md
@dangrondahl dangrondahl enabled auto-merge (squash) July 3, 2026 11:08
mbevc1 and others added 5 commits July 3, 2026 17:12
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.
@mbevc1 mbevc1 force-pushed the docs/setup-cli-action-reference branch from 675958f to ea40afa Compare July 3, 2026 16:13
@dangrondahl dangrondahl merged commit c838818 into main Jul 3, 2026
4 of 5 checks passed
@dangrondahl dangrondahl deleted the docs/setup-cli-action-reference branch July 3, 2026 16:13
KOSLI_TRAIL: ${{ github.sha }}
IMAGE_NAME: my-registry/my-image:latest
steps:
- name: Build and push Docker image

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: Missing actions/checkout step. Without it, docker/build-push-action has no build context and the job will fail. Consider:

Suggested change
- name: Build and push Docker image
steps:
- uses: actions/checkout@v4
- name: Build and push Docker image

Comment thread integrations/ci_cd.md
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.

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.

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:

Suggested change
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.

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.

docs: add reference page for the setup-kosli-cli GitHub Action

2 participants