Skip to content

feat(ci): fork-PR safety gate for atmos git clone - #2661

Merged
Andriy Knysh (aknysh) merged 10 commits into
mainfrom
osterman/winnipeg-v2
Jul 5, 2026
Merged

Andriy Knysh (aknysh) merged 10 commits into
mainfrom
osterman/winnipeg-v2

Conversation

@osterman

@osterman Erik Osterman (Cloud Posse) (osterman) commented Jun 27, 2026 •

Copy link
Copy Markdown
Member

what

  • atmos git clone (Atmos's native actions/checkout replacement) now refuses by default to clone untrusted fork content under GitHub's elevated pull_request_target and workflow_run events.
  • The gate triggers only on the dangerous combination — an elevated event plus a fork-targeting clone (a PR head/merge ref override like refs/pull/<N>/merge, or an ad hoc clone URI whose owner/repo differs from the base GITHUB_REPOSITORY). Safe no-arg base checkouts and low-privilege pull_request/push/merge_group events are unaffected.
  • Adds a grep-able opt-in: --allow-unsafe-fork flag, ATMOS_ALLOW_UNSAFE_FORK_EXECUTION env var, and ci.allow_unsafe_fork_execution config key.
  • Adds the provider-agnostic gate core (pkg/ci.EvaluateForkCheckout), a Context.ElevatedEvent trust signal set by the GitHub provider, the ErrUnsafeForkCheckout sentinel, and unit tests (incl. negative paths).
  • Documents it: new PRD docs/prd/native-ci/framework/fork-pr-trust-gate.md, atmos git clone CLI docs, CI configuration reference, and a changelog blog post + roadmap milestone.

why

  • Because atmos git clone fills the same role as actions/checkout, it inherited the same "pwn request" risk: cloning a fork's PR code in a job that holds the base repository's secrets/GITHUB_TOKEN/cloud credentials lets a malicious contributor exfiltrate them.
  • This mirrors the actions/checkout v7 hardening (fail-closed by default, explicit grep-able opt-out), bringing Atmos's checkout replacement to parity.

references

`atmos git clone` (Atmos's native actions/checkout replacement) now refuses
by default to clone untrusted fork content under GitHub's elevated
pull_request_target and workflow_run events — mirroring actions/checkout v7's
"pwn request" hardening. The gate triggers only on a PR head/merge ref override
or a cross-repository clone URI; safe no-arg base checkouts and low-privilege
pull_request/push events are unaffected.

A grep-able opt-in is provided: --allow-unsafe-fork flag,
ATMOS_ALLOW_UNSAFE_FORK_EXECUTION env, or ci.allow_unsafe_fork_execution config.

Includes the gate logic (pkg/ci.EvaluateForkCheckout), provider ElevatedEvent
signal, cmd/git wiring, ErrUnsafeForkCheckout sentinel, unit tests, docs, and
the native-ci PRD (fork-pr-trust-gate.md).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@atmos-pro

atmos-pro Bot commented Jun 27, 2026 •

Copy link
Copy Markdown
Contributor

Tip

Atmos Pro  

No affected stacks workflow was detected for this pull request.
If this is expected, no action is needed.
Learn More. Ask AI.

@osterman Erik Osterman (Cloud Posse) (osterman) added the minor New features that do not break anything label Jun 27, 2026
@github-actions github-actions Bot added the size/m Medium size PR label Jun 27, 2026
@github-actions

github-actions Bot commented Jun 27, 2026 •

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues found.

Scanned Files

None

@github-actions

github-actions Bot commented Jun 27, 2026 •

Copy link
Copy Markdown

Resource Changes Found for bucket in test

Atmos CI

[![create](https://shields.io/badge/PLAN-CREATE-success?style=for-the-badge)](#user-content-create-test-bucket)
Plan: 5 to add, 0 to change, 0 to destroy.
To reproduce this locally, run:

atmos terraform plan bucket -s test

Create

+ aws_s3_bucket.checkov_target
+ aws_s3_bucket.kics_target
+ aws_s3_bucket.this
+ aws_s3_bucket.trivy_target
+ aws_s3_bucket_public_access_block.trivy_target
Terraform Plan Summary
  # aws_s3_bucket.checkov_target will be created
  + resource "aws_s3_bucket" "checkov_target" {
      + acceleration_status         = (known after apply)
      + acl                         = (known after apply)
      + arn                         = (known after apply)
      + bucket                      = "atmos-native-ci-e2e-checkov-test"
      + bucket_domain_name          = (known after apply)
      + bucket_prefix               = (known after apply)
      + bucket_regional_domain_name = (known after apply)
      + force_destroy               = false
      + hosted_zone_id              = (known after apply)
      + id                          = (known after apply)
      + object_lock_enabled         = (known after apply)
      + policy                      = (known after apply)
      + region                      = (known after apply)
      + request_payer               = (known after apply)
      + tags_all                    = (known after apply)
      + website_domain              = (known after apply)
      + website_endpoint            = (known after apply)

      + cors_rule (known after apply)

      + grant (known after apply)

      + lifecycle_rule (known after apply)

      + logging (known after apply)

      + object_lock_configuration (known after apply)

      + replication_configuration (known after apply)

      + server_side_encryption_configuration (known after apply)

      + versioning (known after apply)

      + website (known after apply)
    }

  # aws_s3_bucket.kics_target will be created
  + resource "aws_s3_bucket" "kics_target" {
      + acceleration_status         = (known after apply)
      + acl                         = (known after apply)
      + arn                         = (known after apply)
      + bucket                      = "atmos-native-ci-e2e-kics-test"
      + bucket_domain_name          = (known after apply)
      + bucket_prefix               = (known after apply)
      + bucket_regional_domain_name = (known after apply)
      + force_destroy               = false
      + hosted_zone_id              = (known after apply)
      + id                          = (known after apply)
      + object_lock_enabled         = (known after apply)
      + policy                      = (known after apply)
      + region                      = (known after apply)
      + request_payer               = (known after apply)
      + tags_all                    = (known after apply)
      + website_domain              = (known after apply)
      + website_endpoint            = (known after apply)

      + cors_rule (known after apply)

      + grant (known after apply)

      + lifecycle_rule (known after apply)

      + logging (known after apply)

      + object_lock_configuration (known after apply)

      + replication_configuration (known after apply)

      + server_side_encryption_configuration (known after apply)

      + versioning (known after apply)

      + website (known after apply)
    }

  # aws_s3_bucket.this will be created
  + resource "aws_s3_bucket" "this" {
      + acceleration_status         = (known after apply)
      + acl                         = (known after apply)
      + arn                         = (known after apply)
      + bucket                      = "atmos-native-ci-e2e-test"
      + bucket_domain_name          = (known after apply)
      + bucket_prefix               = (known after apply)
      + bucket_regional_domain_name = (known after apply)
      + force_destroy               = false
      + hosted_zone_id              = (known after apply)
      + id                          = (known after apply)
      + object_lock_enabled         = (known after apply)
      + policy                      = (known after apply)
      + region                      = (known after apply)
      + request_payer               = (known after apply)
      + tags                        = {
          + "AtmosFixture" = "native-ci-e2e"
          + "Stage"        = "test"
        }
      + tags_all                    = {
          + "AtmosFixture" = "native-ci-e2e"
          + "Stage"        = "test"
        }
      + website_domain              = (known after apply)
      + website_endpoint            = (known after apply)

      + cors_rule (known after apply)

      + grant (known after apply)

      + lifecycle_rule (known after apply)

      + logging (known after apply)

      + object_lock_configuration (known after apply)

      + replication_configuration (known after apply)

      + server_side_encryption_configuration (known after apply)

      + versioning (known after apply)

      + website (known after apply)
    }

  # aws_s3_bucket.trivy_target will be created
  + resource "aws_s3_bucket" "trivy_target" {
      + acceleration_status         = (known after apply)
      + acl                         = (known after apply)
      + arn                         = (known after apply)
      + bucket                      = "atmos-native-ci-e2e-trivy-test"
      + bucket_domain_name          = (known after apply)
      + bucket_prefix               = (known after apply)
      + bucket_regional_domain_name = (known after apply)
      + force_destroy               = false
      + hosted_zone_id              = (known after apply)
      + id                          = (known after apply)
      + object_lock_enabled         = (known after apply)
      + policy                      = (known after apply)
      + region                      = (known after apply)
      + request_payer               = (known after apply)
      + tags_all                    = (known after apply)
      + website_domain              = (known after apply)
      + website_endpoint            = (known after apply)

      + cors_rule (known after apply)

      + grant (known after apply)

      + lifecycle_rule (known after apply)

      + logging (known after apply)

      + object_lock_configuration (known after apply)

      + replication_configuration (known after apply)

      + server_side_encryption_configuration (known after apply)

      + versioning (known after apply)

      + website (known after apply)
    }

  # aws_s3_bucket_public_access_block.trivy_target will be created
  + resource "aws_s3_bucket_public_access_block" "trivy_target" {
      + block_public_acls       = true
      + block_public_policy     = true
      + bucket                  = (known after apply)
      + id                      = (known after apply)
      + ignore_public_acls      = true
      + restrict_public_buckets = true
    }

Plan: 5 to add, 0 to change, 0 to destroy.

Changes to Outputs:
  + bucket_name = "atmos-native-ci-e2e-test"


Workspace "test" doesn't exist.

You can create this workspace with the "new" subcommand 
or include the "-or-create" flag with the "select" subcommand.

@coderabbitai

coderabbitai Bot commented Jun 27, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 9bd89bd9-69f8-4180-9ffc-18553ee9f911

📥 Commits

Reviewing files that changed from the base of the PR and between 2920469 and 5b99b68.

📒 Files selected for processing (2)
  • pkg/ci/internal/provider/types.go
  • website/src/data/roadmap.js
✅ Files skipped from review due to trivial changes (1)
  • website/src/data/roadmap.js
🚧 Files skipped from review as they are similar to previous changes (1)
  • pkg/ci/internal/provider/types.go

📝 Walkthrough

Walkthrough

Adds a fail-closed fork-PR safety gate to atmos git clone. GitHub CI marks elevated events, fork trust is evaluated from ref and URI inputs, clone paths call the gate before proceeding, and explicit flag, env var, or config settings can bypass it.

Changes

Fork-PR Safety Gate for atmos git clone

Layer / File(s) Summary
ElevatedEvent field and GitHub provider detection
pkg/ci/internal/provider/types.go, pkg/ci/providers/github/provider.go, pkg/ci/providers/github/provider_test.go
Adds ElevatedEvent bool to CI context and sets it for pull_request_target and workflow_run in the GitHub provider, with a table-driven test across event names.
EvaluateForkCheckout logic and URI/ref helpers
errors/errors.go, pkg/schema/schema.go, pkg/ci/forktrust.go, pkg/ci/forktrust_test.go
Introduces the unsafe-checkout sentinel error, the CI config opt-out field, CloneRequest, ForkVerdict, EvaluateForkCheckout, ref and URI trust helpers, and unit tests for trust evaluation and parsing helpers.
guardForkCheckout wiring into clone paths
cmd/git/clone.go, cmd/git/flags.go, cmd/git/forktrust_test.go
Adds AllowUnsafeFork and guardForkCheckout, wires the new flag/env binding, and invokes the gate from named clone, URI clone, and CI checkout paths with tests for elevated, trusted, named-clone, and opt-out cases.
PRD, CLI docs, CI config docs, and blog post
docs/prd/native-ci/..., website/docs/cli/..., website/blog/..., website/src/data/roadmap.js
Adds the fork-pr-trust-gate PRD, updates Native CI and CLI docs, adds CI config reference entries, and publishes the announcement blog post and roadmap milestone.

Native CI GOPROXY Fallback

Layer / File(s) Summary
GOPROXY fallback setting
.github/workflows/native-ci.yml
Sets GOPROXY in the native CI workflow to `proxy.golang.org

Estimated code review effort: 4 (Complex) | ~50 minutes

Possibly related PRs

  • cloudposse/atmos#2597: Builds on the atmos git clone execution paths that this change gates with fork-trust checks.

Suggested reviewers: aknysh, atmos-pro

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 38.71% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: a fork-PR safety gate for atmos git clone.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch osterman/winnipeg-v2

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

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.

Actionable comments posted: 7

🧹 Nitpick comments (1)
cmd/git/forktrust_test.go (1)

39-107: 🔒 Security & Privacy | 🔵 Trivial | 🏗️ Heavy lift

Add a behavior-level test for the clone path wiring.

These tests validate the helper directly, but the feature risk is the runCloneURI / runCICheckout integration. Add at least one test proving an unsafe elevated clone returns ErrUnsafeForkCheckout before cloning. As per coding guidelines, “Test behavior, not implementation.”

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@cmd/git/forktrust_test.go` around lines 39 - 107, The current tests exercise
guardForkCheckout directly, but they miss the behavior-level clone path. Add an
integration-style test around runCloneURI or runCICheckout that sets up an
elevated fork PR environment and verifies an unsafe cross-repo or PR ref clone
is rejected with ErrUnsafeForkCheckout before any clone is attempted. Use the
existing helpers like setForkPRTargetEnv and the runCloneURI/runCICheckout
entrypoints to keep the test focused on observable behavior rather than the
guard implementation.

Source: Coding guidelines

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@cmd/git/clone.go`:
- Around line 371-376: The Fork-checkout gate in detected.Context handling
currently fails open when CI metadata cannot be read, which disables the
security check. Update the clone flow around the ciCtx, err :=
detected.Context() branch to return a wrapped error instead of logging and
returning nil when the CI context is unavailable, so unknown trust context
blocks the clone. Keep the fix localized to the detected.Context() error path in
clone.go and preserve the existing gate behavior for valid contexts.
- Around line 198-201: The named clone path in runCloneNamed bypasses the fork
opt-in gate, so it can clone a configured fork repo without checking approval.
Add the same guardForkCheckout validation used in the ad hoc URI and CI paths
before the exec.Clone call, using the resolved URI/branch inputs already
available in runCloneNamed so all clone entrypoints are gated consistently.

In `@docs/prd/native-ci/framework/fork-pr-trust-gate.md`:
- Around line 158-159: Remove the stale “follow-up implementation PR” wording
from the PRD and update the referenced scope note to reflect that the
implementation is already included in this stack. Adjust the text around the
rollout/implementation summary in fork-pr-trust-gate.md so it matches the
existing work in cmd/git/clone.go, pkg/ci/forktrust.go, and the schema/errors
changes, without implying additional future follow-up.
- Around line 78-80: FR-30 currently treats any available event payload fork
signal as equivalent to a fork-targeting clone, which conflicts with the trusted
no-arg checkout behavior and the existing evaluator logic in forktrust.go.
Tighten the requirement in the PR trust gate spec so only explicit PR refs or
cross-repo clone indicators are treated as untrusted, and keep the safe default
checkout path trusted when no repo URI/ref override is present. Use the
trusted/default checkout language already aligned with the forktrust evaluator
to locate the affected requirement text.

In `@pkg/ci/forktrust.go`:
- Around line 72-79: The trust check in forktrust.go only compares the
normalized repository slug in the fork-verdict logic, so it can miss malicious
clones from a different host. Update the URI comparison in the ForkVerdict path
to validate the full remote identity by checking the clone host against
ciCtx.ServerURL and ciCtx.CloneURL, not just repoSlugFromURI and
normalizeRepoSlug. Keep the existing untrusted return in the same ForkVerdict
branch, but make the mismatch detection include host and repository together so
ErrUnsafeForkCheckout is triggered for cross-host clones.

In `@website/src/data/roadmap.js`:
- Line 435: The shipped roadmap milestone for “Fork-PR safety gate for `atmos
git clone`” is missing the required PR reference, so update the roadmap entry in
the `website/src/data/roadmap.js` data object to include a `pr` field alongside
the existing `changelog` value. Use the same milestone object and keep the other
shipped metadata intact while adding the PR number in the format used by other
entries so it conforms to the roadmap contract.
- Line 413: The `ci-cd` initiative progress value is now inconsistent with its
milestone counts in `roadmap.js`. Update the `progress` field for the `ci-cd`
entry so it matches 19 shipped and 1 in-progress milestones, and keep the value
aligned with the roadmap’s existing progress calculation used in the initiative
object.

---

Nitpick comments:
In `@cmd/git/forktrust_test.go`:
- Around line 39-107: The current tests exercise guardForkCheckout directly, but
they miss the behavior-level clone path. Add an integration-style test around
runCloneURI or runCICheckout that sets up an elevated fork PR environment and
verifies an unsafe cross-repo or PR ref clone is rejected with
ErrUnsafeForkCheckout before any clone is attempted. Use the existing helpers
like setForkPRTargetEnv and the runCloneURI/runCICheckout entrypoints to keep
the test focused on observable behavior rather than the guard implementation.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 773be39e-bead-42d0-9633-e4dba271b681

📥 Commits

Reviewing files that changed from the base of the PR and between 3562be2 and 0761dbd.

📒 Files selected for processing (18)
  • cmd/git/clone.go
  • cmd/git/flags.go
  • cmd/git/forktrust_test.go
  • docs/prd/native-ci/README.md
  • docs/prd/native-ci/framework/README.md
  • docs/prd/native-ci/framework/fork-pr-trust-gate.md
  • docs/prd/native-ci/overview.md
  • errors/errors.go
  • pkg/ci/forktrust.go
  • pkg/ci/forktrust_test.go
  • pkg/ci/internal/provider/types.go
  • pkg/ci/providers/github/provider.go
  • pkg/ci/providers/github/provider_test.go
  • pkg/schema/schema.go
  • website/blog/2026-06-27-git-clone-fork-pr-safety-gate.mdx
  • website/docs/cli/commands/git/git-clone.mdx
  • website/docs/cli/configuration/ci/index.mdx
  • website/src/data/roadmap.js

Comment thread cmd/git/clone.go Resolved
Comment thread cmd/git/clone.go Resolved
Comment thread pkg/ci/forktrust.go Resolved
Comment thread website/src/data/roadmap.js Resolved
Comment thread website/src/data/roadmap.js Resolved
@codecov

codecov Bot commented Jun 27, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 83.05085% with 20 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.67%. Comparing base (161658c) to head (5b99b68).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
cmd/git/clone.go 70.83% 10 Missing and 4 partials ⚠️
pkg/ci/forktrust.go 91.04% 3 Missing and 3 partials ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2661      +/-   ##
==========================================
+ Coverage   80.64%   80.67%   +0.02%     
==========================================
  Files        1530     1531       +1     
  Lines      144898   145006     +108     
==========================================
+ Hits       116854   116981     +127     
+ Misses      21492    21463      -29     
- Partials     6552     6562      +10     
Flag Coverage Δ
unittests 80.67% <83.05%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
cmd/git/flags.go 96.99% <100.00%> (+0.04%) ⬆️
errors/errors.go 100.00% <ø> (ø)
pkg/ci/providers/github/provider.go 95.00% <100.00%> (+22.27%) ⬆️
pkg/schema/schema.go 86.02% <ø> (ø)
pkg/ci/forktrust.go 91.04% <91.04%> (ø)
cmd/git/clone.go 75.80% <70.83%> (-2.29%) ⬇️

... and 6 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

…d, named clones)

Addresses CodeRabbit findings on the fork-PR safety gate:
- Compare clone host as well as owner/repo, so a same-slug different-host URI
  (e.g. https://evil.example.com/acme/infra.git) is treated as untrusted;
  extract evaluateCloneTarget to keep complexity in check.
- Fail closed when a detected CI provider's context cannot be read, matching the
  gate's documented fail-closed design.
- Gate the named-clone path on pull-request ref overrides (configured URIs stay
  trusted), closing the `atmos git clone <name> --branch refs/pull/N/merge` hole.
- Align PRD FR-30 wording with the implemented detection inputs, drop the stale
  "follow-up implementation PR" note, and add pr:2661 + corrected progress to the
  roadmap milestone.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

@coderabbitai coderabbitai Bot left a comment

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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@website/src/data/roadmap.js`:
- Line 435: Update the roadmap entry for the `Fork-PR safety gate for \`atmos
git clone\`` item so it explicitly mentions host mismatches as a trigger, not
just PR ref overrides and cross-repository clone URIs. Adjust the `description`
text in `roadmap.js` to match the shipped behavior described by `atmos git
clone` and the PRD/docs, using the existing `label`/`description` entry to note
that host or `owner/repo` mismatches are treated as fork-targeting.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 278a764e-b49b-4023-8fdd-5cc0be4f7056

📥 Commits

Reviewing files that changed from the base of the PR and between 0761dbd and 933c87b.

📒 Files selected for processing (6)
  • cmd/git/clone.go
  • cmd/git/forktrust_test.go
  • docs/prd/native-ci/framework/fork-pr-trust-gate.md
  • pkg/ci/forktrust.go
  • pkg/ci/forktrust_test.go
  • website/src/data/roadmap.js
🚧 Files skipped from review as they are similar to previous changes (4)
  • pkg/ci/forktrust_test.go
  • pkg/ci/forktrust.go
  • cmd/git/clone.go
  • cmd/git/forktrust_test.go

Comment thread website/src/data/roadmap.js Resolved
…ranches

- Roadmap milestone description now states the gate triggers on a clone URI
  whose host or owner/repo differs from base (not just "cross-repository"),
  matching the shipped behavior (CodeRabbit).
- Add unit tests for baseHostFromContext (ServerURL/CloneURL fallback),
  CloneURL-only host comparison, and single-segment slug parsing to raise
  patch coverage on pkg/ci/forktrust.go.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
coderabbitai[bot]
coderabbitai Bot previously approved these changes Jun 28, 2026
@mergify

mergify Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

💥 This pull request now has conflicts. Could you fix it Erik Osterman (Cloud Posse) (@osterman)? 🙏

@mergify mergify Bot added the conflict This PR has conflicts label Jul 1, 2026
coderabbitai[bot]
coderabbitai Bot previously approved these changes Jul 1, 2026
@mergify

mergify Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Important

Cloud Posse Engineering Team Review Required

This pull request modifies files that require Cloud Posse's review. Please be patient, and a core maintainer will review your changes.

To expedite this process, reach out to us on Slack in the #pr-reviews channel.

@mergify mergify Bot added the needs-cloudposse Needs Cloud Posse assistance label Jul 1, 2026
coderabbitai[bot]
coderabbitai Bot previously approved these changes Jul 1, 2026
@mergify

mergify Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

💥 This pull request now has conflicts. Could you fix it Erik Osterman (Cloud Posse) (@osterman)? 🙏

@mergify mergify Bot added the conflict This PR has conflicts label Jul 2, 2026
@github-actions

github-actions Bot commented Jul 2, 2026 •

Copy link
Copy Markdown

Note

SHA Pin Verification Passed ✅

All 101 SHA-pinned action(s) verified against upstream tags.

@mergify

mergify Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

💥 This pull request now has conflicts. Could you fix it Erik Osterman (Cloud Posse) (@osterman)? 🙏

@mergify mergify Bot added the conflict This PR has conflicts label Jul 3, 2026
@aknysh
Andriy Knysh (aknysh) merged commit 10f19c2 into main Jul 5, 2026
78 of 79 checks passed
@aknysh
Andriy Knysh (aknysh) deleted the osterman/winnipeg-v2 branch July 5, 2026 07:50
@atmos-pro

atmos-pro Bot commented Jul 5, 2026 •

Copy link
Copy Markdown
Contributor

Tip

Atmos Pro  

No affected stacks workflow was detected for this pull request.
If this is expected, no action is needed.
Learn More. Ask AI.

@mergify mergify Bot removed the needs-cloudposse Needs Cloud Posse assistance label Jul 5, 2026
@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown

Warning

Release Documentation Required

This PR is labeled minor or major and requires documentation updates:

  • Changelog entry - Add a blog post in website/blog/YYYY-MM-DD-feature-name.mdx
  • Roadmap update - Update website/src/data/roadmap.js with the new milestone

Alternatively: If this change doesn't require release documentation, remove the minor or major label.

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown

These changes were released in v1.223.0-rc.3.

This branch was successfully deployed

1 active deployment
preview — 5b99b68d Deployed Jul 5, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

minor New features that do not break anything size/m Medium size PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants