Skip to content

cloudsec: code ingest no longer requires a collected repository - #342

Merged
maximelb merged 2 commits into
masterfrom
byo-ingest-repo-producer
Aug 28, 2026
Merged

cloudsec: code ingest no longer requires a collected repository#342
maximelb merged 2 commits into
masterfrom
byo-ingest-repo-producer

Conversation

@maximelb

Copy link
Copy Markdown
Contributor

What

Documentation only. The wire contract of POST /cloudsec/{oid}/code/ingest is unchanged, so limacharlie cloudsec code ingest and CloudSec.ingest_code_results needed no code change.

What did change is the backend: a push for a repository no connected source-control organization covers now CREATES the repository instead of being refused with repo_not_in_inventory. Both the CLI help and the SDK docstring told customers the opposite ("It must already be in the org's collected inventory"), which is now false and is exactly the sentence somebody would read before deciding the feature is not for them.

The replacement says what the backend actually does: the policy is still the switch, the repository is created carrying only what the push vouches for, cloudsec code repos shows it with source: ingest (and both once a connection collects it too), it counts against the free tier's repository quota like a collected one, and it is removed with its findings after a month with no push that moves its commit.

Public repo — draft, for review. Not to be merged by the session.

Documentation only — the wire contract is unchanged, so `limacharlie cloudsec
code ingest` needed no code change. What did change is the backend: a push for a
repository no connected source-control organization covers now CREATES the
repository rather than being refused with repo_not_in_inventory, and both the CLI
help and the SDK docstring told customers the opposite.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
lcbill
lcbill previously approved these changes Aug 27, 2026
…ult branch

The backend change is that a push for a repository no connected source-control
organization covers now CREATES the repository instead of being refused with
repo_not_in_inventory. Both the CLI help and the SDK docstring told customers the
opposite ("It must already be in the org's collected inventory"), which is exactly
the sentence somebody reads before deciding the feature is not for them.

One real addition: `--default-branch` / `default_branch=`. The shipping branch is
the one repository fact a push can contribute that a scan result cannot, and for a
repository LimaCharlie does not collect nothing else can state it at all. Omitted
rather than guessed when the caller does not know it — a default of "main" would
be inventing inventory.

Public repo: draft, for review. Not to be merged by the session.
@maximelb
maximelb marked this pull request as ready for review August 27, 2026 18:57
@maximelb
maximelb merged commit 8cd6158 into master Aug 28, 2026
6 checks passed
@maximelb
maximelb deleted the byo-ingest-repo-producer branch August 28, 2026 02:41
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.

2 participants