Fetches one Kosli repo, by its internal ID or by its name. Kosli records a repo when an attestation or trail references it. Use the returned id with the kosli_repo_tags resource to tag the repo, or the kosli_repos data source to find several repos at once.
Example usage
Schema
Optional
id (String) Internal Kosli ID of the repo. Set either id or name.
name (String) Full name of the repo, including its namespace, for example acme/platform/api. Set either id or name. Names can repeat across VCS providers; set vcs_provider when more than one repo has this name.
vcs_provider (String) VCS provider of the repo, for example github or gitlab. When set, narrows a lookup by name; conflicts with id. When not set, Kosli’s value is returned, or null when Kosli could not determine it.
Read-only
tags (Map of String) Key-value pairs tagging the repo.
url (String) URL of the repo.
vcs_instance (String) VCS host of the repo. Null when Kosli could not determine it.
Last modified on November 16, 2026