Skip to content

feat(run): bind the GitHub provider profiles and OIDC host to a configured GitHub server - #9625

Merged
waynesun09 merged 9 commits into
mainfrom
ci-run-configured-github-server
Nov 19, 2026
Merged

waynesun09 merged 9 commits into
mainfrom
ci-run-configured-github-server

Conversation

@waynesun09

@waynesun09 waynesun09 commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Summary

On a GitHub server other than github.com (GitHub Enterprise Server, or a GitHub-compatible API), the sandbox's gh calls were denied and the gateway and OpenAI WIF routes could not fetch an OIDC assertion. This PR binds the GitHub provider profiles and the OIDC host check to the server GITHUB_SERVER_URL names. Nothing changes on github.com.

Related Issue

Part of #9607

Changes

  • internal/cli/github_profile.go: when GITHUB_SERVER_URL names a host other than github.com, every profile that issues GH_TOKEN gets an endpoint for that host and port. The endpoint is cloned from each of the profile's github.com endpoints, with the same protocol, access and enforcement, and GraphQL at /api/graphql. A clone drops the github.com ports and allowed_ips, only endpoints the profile does not already name for the server are added, and when api.github.com and github.com disagree on access for one protocol and path, the read-only policy wins. This is the GitHub analogue of bindGitLabForgeHost (GitLab: stock triage cannot access custom forge host from OpenShell sandbox #8683). This applies to resolved and embedded profiles alike.
  • The sandbox .env gets a runner-owned GH_HOST (IPv6 literals keep their brackets), plus a plain export GH_ENTERPRISE_TOKEN="${GH_TOKEN:-}" that copies the GH_TOKEN placeholder. gh reads its token from GH_ENTERPRISE_TOKEN on such a host. Because the proxy substitutes a placeholder by its value, the copy authenticates with no credential of its own, and the real token never enters the sandbox.
  • internal/inference/actionsoidc: RequireGitHubOIDCHost also accepts the host GITHUB_SERVER_URL names when it is not github.com, because there the runner's token service is the server itself. github.com is still never a token service, and any other host is still refused.
  • The server is read with config.GitHubServerBaseURL, the rule the API client and the allowlist already use. An http, userinfo, path or query URL therefore leaves the run on github.com, as it does for the rest of the run. GHE.com (*.ghe.com) is left unbound: gh calls api.<host> there and reads GH_TOKEN.
  • The sandbox env manifest lists GH_HOST and GH_ENTERPRISE_TOKEN as gated exports, and docs/normative/sandbox-env/v1/env-references.schema.json is regenerated.
  • validateForgeDestination's messages no longer name GitLab, since both forges use it.

Testing

  • make lint passes (stage changes first, then run)
  • Tests added/updated for new or modified logic: internal/cli/github_profile_test.go, internal/inference/actionsoidc/server_host_test.go
  • Live suite time and load: none. The live suite runs fullsend run, but on github.com both new paths are skipped (they start only when GITHUB_SERVER_URL names another host): no extra API calls, endpoints or waits.
  • Checked with OpenShell 0.1.4 against a TLS GitHub-compatible server: with only GH_HOST set, gh got 401; with GH_ENTERPRISE_TOKEN copied from the placeholder, gh api /user answered.

Checklist

  • PR title follows Conventional Commits (correct type, ! for breaking changes)
  • Commits are signed off (DCO) — human and human-directed agent sessions only
  • I wrote this contribution myself and can explain all changes in it

… than github.com

On a GitHub Enterprise Server (or another GitHub-compatible API) the
sandbox's gh calls were denied: OpenShell resolves the GH_TOKEN
placeholder only at the endpoints of the profile that issued it, and the
stock GitHub profiles name only api.github.com and github.com. gh also
needs GH_HOST for such a server, and reads its token from
GH_ENTERPRISE_TOKEN there, never from GH_TOKEN.

When GITHUB_SERVER_URL names a host other than github.com:
- every profile that issues GH_TOKEN, resolved or embedded, gets an
  endpoint for that host and port cloned from each of its github.com
  endpoints (same protocol, access and enforcement; GraphQL at
  /api/graphql), the GitHub analogue of bindGitLabForgeHost (#8683);
- the sandbox .env gets runner-owned GH_HOST and a GH_ENTERPRISE_TOKEN
  that copies the GH_TOKEN placeholder. The proxy substitutes a
  placeholder by value, so the copy authenticates without a credential
  of its own, and the real token never enters the sandbox.

Nothing changes on github.com. validateForgeDestination's messages no
longer name GitLab, since both forges use it.

Checked with OpenShell 0.1.4 against a TLS GitHub emulator: with GH_HOST
only, gh gets 401; with GH_ENTERPRISE_TOKEN copied from the placeholder,
gh api /user answers.

Assisted-by: Claude
Signed-off-by: Wayne Sun <gsun@redhat.com>
On a GitHub server other than github.com (GitHub Enterprise Server or a
GitHub-compatible API such as an emulator) the runner's Actions token
service is that server itself, so RequireGitHubOIDCHost refused the
runner-injected ACTIONS_ID_TOKEN_REQUEST_URL and the gateway and OpenAI
WIF routes could not fetch an assertion.

Also accept the host GITHUB_SERVER_URL names when it is not github.com.
github.com itself is still never a token service, and any other host is
still refused.

Assisted-by: Claude
Signed-off-by: Wayne Sun <gsun@redhat.com>
The profile binding, GH_HOST and the OIDC host check parsed
GITHUB_SERVER_URL on their own. They accepted http, userinfo and a
path, which config.GitHubServerBaseURL rejects, so for such a URL the
profiles and gh named the server while the rest of the run stayed on
github.com. An http server URL also bound port 80, where the proxy would
put the real token in a plain-text request.

All three now use config.GitHubServerBaseURL. The OIDC check also
compares the port. GHE.com (*.ghe.com) is left unbound: gh calls
api.<host> there and reads GH_TOKEN, which this binding does not model.

GH_HOST depends on the host environment, so the sandbox env manifest
collector pins GITHUB_SERVER_URL and lists GH_HOST as a gated export;
the env reference schema is regenerated.

Assisted-by: Claude
Signed-off-by: Wayne Sun <gsun@redhat.com>
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 5:26 PM UTC · Completed 5:39 PM UTC

Commit: 14fd789 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $2.81

@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Site preview

Preview: https://4a1f0c3b-site.fullsend-ai.workers.dev

Commit: c2d251aa83e356d430e1648126451dbd19347c5d

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Bind GitHub profiles and OIDC checks to the configured server

✨ Enhancement 🧪 Tests 📝 Documentation 🕐 40+ Minutes

Grey Divider

AI Description

• Allow sandbox GitHub credentials to resolve at a configured GitHub Enterprise or compatible
 server.
• Configure gh authentication and accept that server as an OIDC token-service host.
• Document the conditional sandbox export and test server-specific behavior.
Diagram

graph TD
  CFG["GitHub server config"] --> RUN["Run setup"] --> PRO["Bound profiles"] --> PROXY["OpenShell proxy"] --> SERVER[("Configured server")]
  RUN --> ENV["Sandbox environment"] --> GH["gh CLI"] --> PROXY
  CFG --> OIDC["OIDC host check"] --> SERVER
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Restrict credential profiles to the configured server
  • ➕ Would limit server-specific credentials to one forge, following the GitLab binding strategy.
  • ➖ Would remove existing github.com endpoints and could disrupt workflows that still use them.

Recommendation: Adding endpoints preserves existing GitHub profile behavior while enabling the configured server, so it is the practical choice for this PR. Reviewers should confirm that retaining public GitHub endpoints is appropriate for credentials issued by a non-github.com server.

Files changed (9) +579 / -3

Enhancement (4) +321 / -0
github_profile.goBind GitHub credential profiles and gh exports to the server +256/-0

Bind GitHub credential profiles and gh exports to the server

• Derives a validated configured host and port, clones public GitHub endpoints into GH_TOKEN-issuing profiles, and maps GraphQL to /api/graphql. Also generates runner-owned GH_HOST and GH_ENTERPRISE_TOKEN sandbox lines; github.com and GHE.com remain unbound.

internal/cli/github_profile.go

run.goApply GitHub binding during run setup +16/-0

Apply GitHub binding during run setup

• Binds resolved provider profiles before import when a non-github.com server is configured. Appends runner-owned gh exports after harness-controlled environment entries.

internal/cli/run.go

run_openai.goBind embedded GitHub profiles before import +6/-0

Bind embedded GitHub profiles before import

• Applies the same server endpoint binding to embedded scaffold profiles, covering providers imported without a resolved harness profile.

internal/cli/run_openai.go

actionsoidc.goAccept the configured GitHub server as an OIDC host +43/-0

Accept the configured GitHub server as an OIDC host

• Extends OIDC request-host validation to the validated GITHUB_SERVER_URL host and matching port while retaining existing Actions-service and loopback handling. github.com itself remains disallowed as a token-service host.

internal/inference/actionsoidc/actionsoidc.go

Refactor (1) +3 / -3
gitlab_profile.goMake shared forge validation errors forge-neutral +3/-3

Make shared forge validation errors forge-neutral

• Removes GitLab-specific wording from destination validation errors now that GitHub binding uses the same validator.

internal/cli/gitlab_profile.go

Tests (3) +251 / -0
env_manifest_collector_test.goCover GH_HOST in sandbox environment manifest tests +7/-0

Cover GH_HOST in sandbox environment manifest tests

• Registers GH_HOST as a gated export and pins GITHUB_SERVER_URL for gated and ungated bootstrap cases, keeping the manifest test independent of the host environment.

internal/cli/env_manifest_collector_test.go

github_profile_test.goTest GitHub server profile and environment binding +190/-0

Test GitHub server profile and environment binding

• Covers URL eligibility, endpoint cloning and deduplication, GraphQL paths, ports, unchanged profiles, temporary-file binding, and sandbox exports.

internal/cli/github_profile_test.go

server_host_test.goTest configured-server OIDC host validation +54/-0

Test configured-server OIDC host validation

• Verifies matching server hosts and ports are accepted while look-alike hosts, other ports, invalid server URLs, and github.com as a token service are rejected.

internal/inference/actionsoidc/server_host_test.go

Documentation (1) +4 / -0
env-references.schema.jsonDocument the conditional GH_HOST export +4/-0

Document the conditional GH_HOST export

• Adds GH_HOST to the generated sandbox environment schema, including its configured-server gate and relationship to GH_ENTERPRISE_TOKEN.

docs/normative/sandbox-env/v1/env-references.schema.json

@qodo-code-review

qodo-code-review Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0) 🔗 Cross-repo conflicts (1) 📜 Skill insights (0)

Grey Divider


Action required

1. Enterprise calls lose their token ✓ Resolved

Resolving commit: b0772da

Resolution reason
The conditional shell statement was replaced with an unconditional `export
GH_ENTERPRISE_TOKEN="${GH_TOKEN:-}"` assignment, which the sandbox .env loader accepts, so
GH_ENTERPRISE_TOKEN is now exported on GHES hosts. The unit test expectation was updated
accordingly.
Description
githubForgeSandboxEnvLines writes the GH_ENTERPRISE_TOKEN assignment inside an if statement,
but the sandbox environment loader accepts only assignments and exports and drops that statement.
When an agent or preflight probe loads .env on a configured server, it receives GH_HOST without
the enterprise token, so authenticated gh calls fail.


Remediation recommended

2. IPv6 server addresses break host setup ✓ Resolved

Resolving commit: b0772da

Resolution reason
GH_HOST construction now uses net.JoinHostPort(host, port) when the port is nondefault, which
brackets IPv6 literals, and wraps bare IPv6 hosts in brackets when the port is 443. Tests were added
asserting 'export GH_HOST='[2001:db8::1]'' and '[2001:db8::1]:8443'. This matches the suggested
fix's intent (bracketed authorities with and without port, tested) via a slightly different
implementation.
Description
githubForgeSandboxEnvLines builds GH_HOST from url.URL.Hostname(), which strips IPv6 brackets,
and concatenates nondefault ports without restoring them. A permitted server URL such as
https://[2001:db8::1]:8443 produces GH_HOST='2001:db8::1:8443', where the address and port
cannot be distinguished as a URL authority.

3. Aliased profile hosts remain unbound ✓ Resolved

Resolving commit: b0772da

Resolution reason
Host and port are now read through scalarValue(...) (which resolves aliases) instead of raw .Value
on possibly-alias nodes; the public-host template check uses the resolved lowercased host, so
aliased api.github.com hosts now produce cloning templates. A regression test with an aliased host
was added.
Description
addGitHubForgeEndpoints resolves an endpoint alias but compares its host and port value nodes
without resolving aliases on those fields. A custom profile that issues GH_TOKEN and uses an
aliased api.github.com host therefore supplies no cloning template, leaving its configured-server
calls without an endpoint.

4. Enterprise assertions fail gateway auth 🔗 Cross-repo conflict ≡ Correctness
Description
RequireGitHubOIDCHost now accepts an OIDC assertion from the configured GitHub server without
accounting for the issuer trusted by org’s inference gateway. When a run on that server selects the
org gateway route, Fullsend forwards the assertion, but the gateway’s strict JWT policy accepts only
tokens issued by token.actions.githubusercontent.com.
Code

internal/inference/actionsoidc/actionsoidc.go[R198-199]

+	if server, port := configuredGitHubServer(getenv); server != "" && host == server && urlPort(u) == port {
+		return nil
Relevance

●● Moderate

Cross-repo gateway issuer trust is architectural; no direct precedent, so uncertain.

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The PR admits the configured server as an OIDC source and passes the fetched assertion into the
gateway provider. The assessment repository selects the deployed org gateway, whose strict JWT
configuration trusts only the public GitHub Actions issuer.

fullsend -> mlflow-assessments
fullsend -> org
internal/inference/actionsoidc/actionsoidc.go[185-199]
internal/cli/run_gateway_route.go[235-255]
External repo: fullsend-ai/mlflow-assessments, .fullsend/config.yaml [48-54]
External repo: fullsend-ai/org, inference-gateway/config.yaml [15-21]
External repo: fullsend-ai/org, inference-gateway/README.md [291-301]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Enterprise-server assertions pass Fullsend’s host check but cannot authenticate to the org inference gateway, which trusts only GitHub.com Actions tokens.
## Fix Focus Areas
- internal/inference/actionsoidc/actionsoidc.go[194-201]
- /cross_repos/org/inference-gateway/config.tmpl.yaml[17-21]
- /cross_repos/org/inference-gateway/config.yaml[17-21]
## Recommended Fix
Coordinate gateway support for the intended enterprise issuer and JWKS, including its repository-identity allowlist, before enabling that gateway route for enterprise runs. Otherwise, explicitly reject this issuer for the org gateway route with an actionable error.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


View medium (4)
5. Extra forge ports become accessible ✓ Resolved

Resolving commit: b0772da

Resolution reason
Each cloned endpoint now has its 'ports' and 'allowed_ips' keys deleted before being appended, so
the configured-server endpoint only authorizes the configured port. A regression test checks that
the clone lacks 'ports'.
Description
addGitHubForgeEndpoints copies a public endpoint’s ports list while replacing its primary host
and port. If a custom profile lists auxiliary ports for github.com, the new configured-server
endpoint authorizes those ports too, rather than only the configured server port.

6. Custom access rules are discarded ✓ Resolved

Resolving commit: b0772da

Resolution reason
The dedup was rewritten: templates are now grouped by the same protocol+path key via byKey, and when
two templates share a key, the one with access "read-only" wins (clones[i] = ep replaces the earlier
entry if the later one is read-only). This makes the selected policy deterministic for the
conflicting case, favoring the read-only policy regardless of order, rather than rejecting the
conflict explicitly as the fix prompt suggested. Tests
TestAddGitHubForgeEndpointsPrefersReadOnlyAndResolvesAliases cover the conflict. Note: the read-only
preference only applies when the later template is read-only; if the first is read-only and second
read-write, the first is kept, so order independence holds in both cases.
Description
addGitHubForgeEndpoints deduplicates cloned endpoints using only protocol and path, omitting
access and enforcement from the key. If a custom profile gives api.github.com and github.com
different policies for the same protocol and path, whichever template appears second is discarded
and its policy never reaches the configured host.

7. Restricted profiles cannot reach the forge ✓ Resolved

Resolving commit: b0772da

Resolution reason
The commit deletes allowed_ips (and ports) from each github.com-derived clone via
deleteYAMLMappingKey(ep, "allowed_ips") before it is added to the configured host, so the cloned
endpoint no longer carries github.com's address restrictions. It also adds a test
(TestAddGitHubForgeEndpointsDropsGitHubComPortsAndAddresses) asserting allowed_ips is absent from
the clone. This matches the requested remediation, though it drops the key inline rather than
following the GitLab binding pattern the suggested fix cited.
Description
addGitHubForgeEndpoints copies allowed_ips from a public GitHub endpoint even though it changes
the endpoint’s host. When that list contains only the public host’s addresses, a custom profile’s
cloned endpoint excludes the configured server’s addresses and its calls are denied.

8. Existing access blocks missing endpoints ✓ Resolved

Resolving commit: b0772da

Resolution reason
The early return on the first host+port match was removed. The commit now collects existing
configured-host endpoints into a present map keyed by protocol and path, skips only clones already
present, and appends only missing clones (deduplicating by key with a read-only preference). A test
(TestAddGitHubForgeEndpointsAddsOnlyWhatIsMissing) verifies a configured-host REST endpoint plus a
public GraphQL template results in the missing /api/graphql clone being added.
Description
addGitHubForgeEndpoints returns the original profile as soon as any endpoint matches the
configured host and port. A custom profile with an existing REST endpoint but a public GitHub
GraphQL endpoint never receives the /api/graphql clone, so GraphQL requests on the configured
server lack the intended profile endpoint.


Informational

9. New GH_HOST sandbox variable is missing from user docs ✓ Resolved

Resolving commit: dd4c9ce

Resolution reason
Added a "GitHub servers other than github.com" section to docs/cli/run.md documenting GH_HOST,
GH_ENTERPRISE_TOKEN, the provider profile endpoint binding, OIDC behavior, and the GHE.com
exclusion.
Description
The PR adds a runner-owned GH_HOST export to the sandbox .env (githubForgeSandboxEnvLines in
internal/cli/github_profile.go) and a GH_ENTERPRISE_TOKEN copy of the GH_TOKEN placeholder,
but docs/cli/ and docs/guides/ never mention GH_HOST and the only new documentation is the
machine-readable schema entry. A user who sets GITHUB_SERVER_URL to a GitHub Enterprise host gets
a sandbox whose gh calls are retargeted by a variable the user-facing docs do not describe, and
the GitHub-profile endpoint binding is not described in docs/guides/user/customizing-agents.md or
docs/cli/run.md either. Per the rule, the new env variable has no reference in the docs the rule
checks, so it should be documented in docs/cli/run.md (near the existing GH_ENTERPRISE_TOKEN
paragraph) or the guides.

Grey Divider

Context sources
✅ Compliance rules (platform): 96 rules
✅ Skills: 5 invoked
  writing-user-docs
  writing-adrs
  check-patch-coverage
  cutting-releases
  adr-corner
✅ Web pages:
  +3 more
✅ Cross-repo context — repo relationships
  Explored: repo: fullsend-ai/agents (sha: 500f72e6) — View relationship
  Explored: repo: fullsend-ai/mlflow-assessments (sha: 0058f877) — View relationship
  Explored: repo: fullsend-ai/org (sha: 311f0f77) — View relationship
✅ Context preparation
  Commit messages: summarized; full text retained for this review
Review mode: Auto: ⚖️ Balanced: Downgraded extended -> standard: change is below the extended eligibility bar (hunks 14/18, lines 582/200; both must reach the floor). Router rationale: Multiple security-sensitive paths add substantial, independently failure-prone host-binding logic.

Grey Divider

Tip of the day
💡 Did you know, you can describe a rule in plain language on the Rules page and Qodo drafts it for you

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

Comment thread internal/cli/github_profile.go Resolved
Comment thread internal/cli/github_profile.go Resolved
Comment thread internal/cli/github_profile.go Resolved
Comment thread internal/cli/github_profile.go Resolved
Comment thread internal/cli/github_profile.go Resolved
Comment thread internal/cli/github_profile.go Resolved
Comment thread internal/cli/github_profile.go Resolved
@fullsend-ai-review fullsend-ai-review Bot added the risk/moderate PR risk: moderate label Nov 17, 2026
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Risk Assessment: moderate (2/5)

Details

Moderate risk: well-scoped change with solid test coverage and no protected or security-sensitive paths, balanced against high churn and contention in CLI runners, and guarded by opt-in GITHUB_SERVER_URL configuration.

Previous run

Risk Assessment: moderate (2/5)

Details

Moderate risk: well-scoped change with solid test coverage and no protected or security-sensitive paths, balanced against high churn and contention in CLI runners, and guarded by opt-in GITHUB_SERVER_URL configuration.

Previous run (2)

Risk Assessment: moderate (2/5)

Details

Moderate risk: well-scoped change with solid test coverage and no protected or security-sensitive paths, balanced against high churn and contention in CLI runners, and guarded by opt-in GITHUB_SERVER_URL configuration.

Previous run (3)

Risk Assessment: moderate (2/5)

Details

Moderate risk: moderate diff with good test coverage and no protected path changes, balanced against high churn and contention in run.go, well-scoped to issue #9607 and opt-in via GITHUB_SERVER_URL.

Previous run (4)

Risk Assessment: moderate (2/5)

Details

Moderate risk: moderate diff with good test coverage and no protected path changes, balanced against high churn in run.go, well-scoped to issue #9607 and opt-in via GITHUB_SERVER_URL.

Previous run (5)

Risk Assessment: moderate (2/5)

Details

Moderate risk: moderate diff with comprehensive test coverage and no protected path changes, balanced against high churn in run.go, well-scoped to issue #9607 and opt-in via GITHUB_SERVER_URL.

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Looks good to me

Earlier findings

  • internal/cli/github_profile.go:176, edge-case — resolved: addGitHubForgeEndpoints now parses with parseSingleProfileDocument (latest commit), so a second YAML document is refused instead of dropped on rewrite; the new test covers both paths and empty input.
  • internal/cli/github_profile.go:183, edge-case — resolved: addGitHubForgeEndpoints now refuses a second YAML document before checkProfileKeys runs, matching the GitLab binding.
  • docs/cli/run.md:539, incorrect-doc — resolved: the GitHub-server section states the run stops on merge keys, alias keys, duplicate keys or more than one document, which the code now does.
  • internal/inference/actionsoidc/server_host_test.go:1, code-organization — reclassified, remains info: tests still live in a separate file next to actionsoidc_test.go.
  • internal/inference/actionsoidc/actionsoidc.go:186, backward-incompatible — reclassified, remains info: RequireGitHubOIDCHost keeps its signature but now also reads GITHUB_SERVER_URL.

No findings at or above low severity; 2 lower-severity finding(s) were not posted.

Previous run

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJhcHByb3ZlIiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoiaW5mbyIsImNhdGVnb3J5IjoiY29kZS1vcmdhbml6YXRpb24iLCJmaWxlIjoiaW50ZXJuYWwvaW5mZXJlbmNlL2FjdGlvbnNvaWRjL3NlcnZlcl9ob3N0X3Rlc3QuZ28iLCJpZCI6ImZfMGMzMzJiZTJlN2JkYWQ3ZSIsImxpb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joicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfZTk1MDlmMjE2OTlkY2Y3OCIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmXzlhNzIxNTUzN2IwZGYyOWYiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl80OGVkZjMzNDQxYWZhNWZjIiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfOTllNDg1NzEwNjRlZmVjYSIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9XX0= -->

Looks good to me

Earlier findings

  • internal/cli/github_profile.go:176, edge-case — resolved: addGitHubForgeEndpoints now parses with parseSingleProfileDocument (latest commit), so a second YAML document is refused instead of dropped on rewrite; the new test covers both paths and empty input.
  • internal/cli/github_profile.go:183, edge-case — resolved: addGitHubForgeEndpoints now refuses a second YAML document before checkProfileKeys runs, matching the GitLab binding.
  • docs/cli/run.md:539, incorrect-doc — resolved: the GitHub-server section states the run stops on merge keys, alias keys, duplicate keys or more than one document, which the code now does.
  • internal/inference/actionsoidc/server_host_test.go:1, code-organization — reclassified, remains info: tests still live in a separate file next to actionsoidc_test.go.
  • internal/inference/actionsoidc/actionsoidc.go:186, backward-incompatible — reclassified, remains info: RequireGitHubOIDCHost keeps its signature but now also reads GITHUB_SERVER_URL.

No findings at or above low severity; 2 lower-severity finding(s) were not posted.

Previous run (2)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6ImVkZ2UtY2FzZSIsImZpbGUiOiJpbnRlcm5hbC9jbGkvZ2l0aHViX3Byb2ZpbGUuZ28iLCJpZCI6ImZfNTU2ODhiOTM1ZmZmNThjMSIsImxpbmUiOjE3NiwiYW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b2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfNDhlZGYzMzQ0MWFmYTVmYyIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmXzk5ZTQ4NTcxMDY0ZWZlY2EiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifV19 -->

Review

Findings

Medium

  • [edge-case] internal/cli/github_profile.go:176 — Multi-document profiles are still accepted despite the documented rejection contract. addGitHubForgeEndpoints calls yaml.Unmarshal, which decodes only the first YAML document, and checkProfileKeys inspects mapping keys, not whether another document follows. A GH_TOKEN profile followed by --- and a second document is therefore rewritten from its first document alone (the remainder is dropped), or returned unchanged, instead of stopping the run as the GitLab binding does through parseSingleProfileDocument. The new test covers merge keys only.
    Remediation: Parse with parseSingleProfileDocument before the root check and checkProfileKeys, as the GitLab binding does. Add tests rejecting a second document both when the first profile needs endpoint cloning and when it would otherwise be returned unchanged.

Low

  • [incorrect-doc] docs/cli/run.md:539 — The new sentence says the run stops if an imported provider profile uses "YAML merge keys, alias keys, duplicate keys or more than one document". checkProfileKeys does not reject multiple documents and addGitHubForgeEndpoints does not call parseSingleProfileDocument, so the "more than one document" claim does not hold for the GitHub binding.
    Remediation: Fix the code as in the finding above (the doc is then accurate), or remove "or more than one document" from the sentence.

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR

2 finding(s) below the low severity threshold were not posted.

Previous run (3)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6ImVkZ2UtY2FzZSIsImZpbGUiOiJpbnRlcm5hbC9jbGkvZ2l0aHViX3Byb2ZpbGUuZ28iLCJpZCI6ImZfODQwN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LCJsaW5lIjo1NTcsImFjdGlvbmFibGUiOnRydWUsImRpbWVuc2lvbiI6ImRvY3MtY3VycmVuY3kifV0sImRpc3Bvc2l0aW9ucyI6W3siaWQiOiJmXzk5ZTQ4NTcxMDY0ZWZlY2EiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl8wYzMzMmJlMmU3YmRhZDdlIiwic3RhdHVzIjoicmVjbGFzc2lmaWVkIn0seyJpZCI6ImZfM2NlYjRmMDhkMjZhNjIxMyIsInN0YXR1cyI6InJlY2xhc3NpZmllZCJ9LHsiaWQiOiJmX2E5MzM1NmI0ZTgzYjViNGQiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl9lNTg1YTQyMjNmMDgzZTUyIiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfOTIxZjM0MTBkOTg0YzhiMCIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmX2U5NTA5ZjIxNjk5ZGNmNzgiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl85YTcyMTU1MzdiMGRmMjlmIiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfNDhlZGYzMzQ0MWFmYTVmYyIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9XX0= -->

Review

Findings

Medium

  • [edge-case] internal/cli/github_profile.go:183 — Profiles that use YAML merge keys are silently left unbound. addGitHubForgeEndpoints calls profileIssuesCredential and yamlMappingValue, which match literal keys only. Their doc comments in gitlab_profile.go say callers reject merge and alias keys first (checkProfileKeys). The GitLab path meets that contract: checkGitLabCredentialBinding calls checkProfileKeys (line 542). The GitHub path never calls it, and bindGitHubForgeHost runs in an else if branch in run.go that is exclusive of the GitLab branch, so no upstream guard covers it. A credential entry such as - <<: *githubCredential that inherits env_vars: [GH_TOKEN] is not recognised, and an endpoint that inherits host: api.github.com is skipped. OpenShell applies these merges, so the run imports a profile that still works for github.com but has no configured-server endpoint. Meanwhile GH_HOST points gh at that server, and its calls are denied rather than the profile being bound or refused with a clear error.
    Remediation: Before inspecting credentials and endpoints in addGitHubForgeEndpoints, call checkProfileKeys(root) and return its error, or resolve the merges. Add regression tests for a merged credential entry and a merged endpoint host.

Earlier findings

  • docs/cli/run.md:557, incomplete-doc — resolved. The new section "GitHub servers other than github.com" (docs/cli/run.md, lines 535–546) documents the provider-profile endpoint cloning, the runner-owned GH_HOST and GH_ENTERPRISE_TOKEN, the OIDC host acceptance, and the server URL rule.

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR

2 finding(s) below the low severity threshold were not posted.

Previous run (4)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6ImluY29tcGxldGUtZG9jIiwiZmlsZSI6ImRvY3MvY2xpL3J1bi5tZCIsImlkIjoiZl85OWU0ODU3MTA2NGVmZWNhIiwibGluZSI6NTU3LCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJkb2NzLWN1cnJlbmN5In0seyJzZXZlcml0eSI6ImluZm8iLCJjYXRlZ29yeSI6ImNvZGUtb3JnYW5pemF0aW9uIiwiZmlsZSI6ImludGVybmFsL2luZmVyZW5jZS9hY3Rpb25zb2lkYy9zZXJ2ZXJfaG9zdF90ZXN0LmdvIiwiaWQiOiJmXzBjMzMyYmUyZTdiZGFkN2UiLCJsaW5lIjoxLCJhY3Rpb25hYmxlIjpmYWxzZSwiZGltZW5zaW9uIjoic3R5bGUtY29udmVudGlvbnMifSx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iJmX2E5MzM1NmI0ZTgzYjViNGQiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl9lNTg1YTQyMjNmMDgzZTUyIiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfOTIxZjM0MTBkOTg0YzhiMCIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9XX0= -->

Review

Findings

Medium

  • [incomplete-doc] docs/cli/run.md:557 — docs/cli/run.md documents the host-side mint's GH_ENTERPRISE_TOKEN handling but omits the new runtime behavior: when GITHUB_SERVER_URL names a server other than github.com, fullsend run binds the GitHub provider profiles to that host (endpoints cloned from github.com, GraphQL at /api/graphql) and writes runner-owned GH_HOST and GH_ENTERPRISE_TOKEN="${GH_TOKEN}" into the sandbox .env. The GitLab counterpart (bindGitLabForgeHost) is documented in the same file; this one is not. No Markdown file is changed by the PR.
    Remediation: Add a short section to docs/cli/run.md (next to the GitLab profile-binding text or the GH_ENTERPRISE_TOKEN mint paragraph) describing the GitHub server binding, the GH_HOST and GH_ENTERPRISE_TOKEN sandbox exports, and the GHE.com exclusion.

Earlier findings

  • internal/cli/github_profile.go:84, api-contract — resolved: the export is now "${GH_TOKEN}", the form internal/runtime/env_data.go expands; ${GH_TOKEN:-} is gone.
  • internal/cli/github_profile.go:84, test-inadequate — resolved: TestGitHubForgeSandboxEnvLinesThroughTheRuntimeLoader passes the generated lines through agentruntime.EnvDataLoad.
  • internal/cli/github_profile.go:77, test-inadequate — resolved: the same test covers a populated and an unset GH_TOKEN and asserts the resulting GH_ENTERPRISE_TOKEN.
  • internal/inference/actionsoidc/server_host_test.go:1, code-organization — reclassified, remains info: the file is unchanged and still sits apart from actionsoidc_test.go.
  • internal/inference/actionsoidc/actionsoidc.go:186, backward-incompatible — reclassified, remains info: the file is unchanged; the change only widens what RequireGitHubOIDCHost accepts and the signature is the same.

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR

2 finding(s) below the low severity threshold were not posted.

Previous run (5)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6ImFwaS1jb250cmFjdCIsImZpbGUiOiJpbnRlcm5hbC9jbGkvZ2l0aHViX3Byb2ZpbGUuZ28iLCJpZCI6ImZfZTk1MDlmMjE2OTlkY2Y3OCIsImxpbmUiOjg0LCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJjb3JyZWN0bmVzcyJ9LHsic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6InRlc3QtaW5hZGVxdWF0ZSIsImZpbGUiOiJpbnRlcm5hbC9jbGkvZ2l0aHViX3Byb2ZpbGUuZ28iLCJpZCI6ImZfOWE3MjE1NTM3YjBkZjI5ZiIsImxpbmUiOjg0LCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJjb3JyZWN0bmVzcyJ9LHsic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6ImluY29tcGxldGUtZG9jIiwiZmlsZSI6ImRvY3MvY2xpL3J1bi5tZCIsImlkIjoiZl85OWU0ODU3MTA2NGVmZWNhIiwibGluZSI6NTU3LCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJkb2NzLWN1cnJlbmN5In0seyJzZXZlcml0eSI6ImluZm8iLCJjYXRlZ29yeSI6ImNvZGUtb3JnYW5pemF0aW9uIiwiZmlsZSI6ImludGVybmFsL2luZmVyZW5jZS9hY3Rpb25zb2lkYy9zZXJ2ZXJfaG9zdF90ZXN0LmdvIiwiaWQiOiJmXzBjMzMyYmUyZTdiZGFkN2UiLCJsaW5lIjoxLC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WluY29uc2lzdGVuY3kiLCJmaWxlIjoiaW50ZXJuYWwvY2xpL2dpdGh1Yl9wcm9maWxlLmdvIiwiaWQiOiJmXzkyMWYzNDEwZDk4NGM4YjAiLCJsaW5lIjoyMDgsImFjdGlvbmFibGUiOmZhbHNlLCJkaW1lbnNpb24iOiJzdHlsZS1jb252ZW50aW9ucyJ9XSwiZGlzcG9zaXRpb25zIjpbeyJpZCI6ImZfNDhlZGYzMzQ0MWFmYTVmYyIsInN0YXR1cyI6Im9wZW4ifSx7ImlkIjoiZl85OWU0ODU3MTA2NGVmZWNhIiwic3RhdHVzIjoib3BlbiJ9LHsiaWQiOiJmX2E5MzM1NmI0ZTgzYjViNGQiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl9lNTg1YTQyMjNmMDgzZTUyIiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfOTIxZjM0MTBkOTg0YzhiMCIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmXzBjMzMyYmUyZTdiZGFkN2UiLCJzdGF0dXMiOiJyZWNsYXNzaWZpZWQifSx7ImlkIjoiZl8zY2ViNGYwOGQyNmE2MjEzIiwic3RhdHVzIjoicmVjbGFzc2lmaWVkIn1dfQ== -->

Review

Findings

Medium

  • [api-contract] internal/cli/github_profile.go:84 — The generated sandbox .env line export GH_ENTERPRISE_TOKEN="${GH...}" uses a form the runtime's .env loader rejects. internal/runtime/env_data.go accepts only $NAME and ${NAME}; ${NAME:-default} raises unsupported parameter expansion and the statement is dropped at launch. GH_ENTERPRISE_TOKEN then never receives the GH_TOKEN placeholder, so gh on the configured server stays unauthenticated. The comment at lines 79-81 also wrongly says the loader accepts this form.
    Remediation: Generate export GH_ENTERPRISE_TOKEN="${GH...}"; the loader already expands an unset name to an empty string. Correct the comment.

  • [test-inadequate] internal/cli/github_profile.go:84 — The enterprise-token handoff has no test through the real runtime .env loader. TestGitHubForgeSandboxEnvLines asserts only the generated string, and the manifest collector checks only the exported name, so both accept a line the loader discards. Same root cause as the api-contract finding above.
    Remediation: Add a regression test that runs the generated lines through runtime.EnvDataLoad with GH_TOKEN set to a placeholder and asserts the exported GH_ENTERPRISE_TOKEN equals it; also cover an unset GH_TOKEN.

  • [incomplete-doc] docs/cli/run.md:557 — The docs describe how the mint sets GH_ENTERPRISE_TOKEN for caller workflows and host-side gh, but not the sandbox-side behavior this PR adds. When GITHUB_SERVER_URL names a server other than github.com (and not *.ghe.com), fullsend run binds GitHub provider profiles to that host and port (GraphQL at /api/graphql) and writes runner-owned GH_HOST and GH_ENTERPRISE_TOKEN into the sandbox .env. Existing text stays accurate, so this is an omission, not an error.
    Remediation: Add a short paragraph near line 557, or a "configured GitHub server" section, covering the profile binding and the GH_HOST / GH_ENTERPRISE_TOKEN sandbox exports. Do not document the literal ${GH_TOKEN:-} form.

Earlier findings

  • internal/cli/github_profile.go:73, edge-case — resolved: IPv6 authority formatting now uses net.JoinHostPort for non-default ports and adds brackets for default-port IPv6 literals; tests cover both.
  • internal/cli/github_profile.go:80, naming-convention — resolved: mustAtoi was removed and githubForgeHostPort returns the port as an int.
  • internal/cli/github_profile.go:208, pattern-inconsistency — resolved: the endpoint check now uses alias and scalar resolution that mirrors gitlab_profile.go.
  • internal/inference/actionsoidc/server_host_test.go:1, code-organization — reclassified to info: internal/inference has no other test file to merge into, and topic-named test files already exist elsewhere in the repo.
  • internal/inference/actionsoidc/actionsoidc.go:185, backward-incompatible — reclassified to info: the change only widens what is accepted, the package is under internal/, and the doc comment already states the behavior.

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR

2 finding(s) below the low severity threshold were not posted.

Previous run (6)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWN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RjOGIwIiwibGluZSI6MjA4LCJhY3Rpb25hYmxlIjpmYWxzZSwiZGltZW5zaW9uIjoic3R5bGUtY29udmVudGlvbnMifSx7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJjb2RlLW9yZ2FuaXphdGlvbiIsImZpbGUiOiJpbnRlcm5hbC9pbmZlcmVuY2UvYWN0aW9uc29pZGMvc2VydmVyX2hvc3RfdGVzdC5nbyIsImlkIjoiZl8wYzMzMmJlMmU3YmRhZDdlIiwibGluZSI6MSwiYWN0aW9uYWJsZSI6ZmFsc2UsImRpbWVuc2lvbiI6InN0eWxlLWNvbnZlbnRpb25zIn0seyJzZXZlcml0eSI6ImxvdyIsImNhdGVnb3J5IjoiYmFja3dhcmQtaW5jb21wYXRpYmxlIiwiZmlsZSI6ImludGVybmFsL2luZmVyZW5jZS9hY3Rpb25zb2lkYy9hY3Rpb25zb2lkYy5nbyIsImlkIjoiZl8zY2ViNGYwOGQyNmE2MjEzIiwibGluZSI6MTg1LCJhY3Rpb25hYmxlIjpmYWxzZSwiZGltZW5zaW9uIjoiY3Jvc3MtcmVwby1jb250cmFjdHMifV19 -->

Review

Findings

Medium

  • [test-inadequate] internal/cli/github_profile.go:77 — The env manifest collector does not see the new conditional export if [ -n "${GH_TOKEN:-}" ]; then export GH_ENTERPRISE_TOKEN="***"; fi: shellCommands splits on ; and collectFromCommand reads then as the command, never unwrapping shell keywords. The gated bootstrap keys and the regenerated closed-inventory schema (additionalProperties: false) list only GH_HOST, although the runner also exports GH_ENTERPRISE_TOKEN, so the collector's completeness check is silently bypassed for this binding.
    Remediation: Emit the copy in a form the collector recognizes (newline after then and a separate export line), or teach the collector to skip shell control keywords. Assert the gated bootstrap discovers GH_ENTERPRISE_TOKEN and add it to conditional in env-references.schema.json with the same gate as GH_HOST (or state the exclusion explicitly).

  • [incomplete-doc] docs/cli/run.md:557 — fullsend run now binds GitHub provider profiles to a non-github.com GITHUB_SERVER_URL (cloned endpoints, GraphQL at /api/graphql), exports runner-owned GH_HOST/GH_ENTERPRISE_TOKEN into the sandbox .env, and accepts that server as the OIDC token host. docs/cli/run.md documents the GitLab equivalent and mentions GH_ENTERPRISE_TOKEN only for host-side minting; this PR changes no docs besides the normative schema (AGENTS.md requires docs/cli/ updates for CLI/env behavior changes).
    Remediation: Document the profile binding (github.com and *.ghe.com left unbound), the sandbox GH_HOST/GH_ENTERPRISE_TOKEN exports, and the widened OIDC host acceptance in docs/cli/run.md.

Low

  • [edge-case] internal/cli/github_profile.go:73 — IPv6 server origins produce an invalid GH_HOST: brackets are stripped by u.Hostname() and lines 71-74 rebuild the authority without them (a bracketed IPv6 literal gives GH_HOST=2001:db8::1; with a port, the ambiguous 2001:db8::1:8443). Fails closed; the GitLab path already uses net.JoinHostPort.
    Remediation: Bracket IPv6 hosts even with the default port and use net.JoinHostPort for non-default ports; add IPv6 tests.

  • [naming-convention] internal/cli/github_profile.go:80 — mustAtoi swallows the error and returns -1 rather than panicking; one call site, while sibling functions check strconv.Atoi inline.

  • [pattern-inconsistency] internal/cli/github_profile.go:208 — addGitHubForgeEndpoints uses scalarValue for the dedup key but reads h.Value, p.Value, path.Value directly, skipping alias resolution and kind checks.

  • [code-organization] internal/inference/actionsoidc/server_host_test.go:1 — Tests for RequireGitHubOIDCHost are split into a new file using plain t.Errorf, while actionsoidc_test.go already holds TestRequireGitHubOIDCHost with testify.

  • [backward-incompatible] internal/inference/actionsoidc/actionsoidc.go:185 — RequireGitHubOIDCHost now depends on GITHUB_SERVER_URL (documented in its doc comment; package is internal/). The oidcHostSuffix comment (lines 39-40) still says "GHES is not supported by fullsend".
    Remediation: Update that comment.


Labels: PR changes sandbox GitHub provider profile binding and runner behavior for non-github.com servers.


Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review fullsend-ai-review Bot added component/sandbox OpenShell sandbox environment component/runner Agent runner behavior and lifecycle labels Nov 17, 2026
Review follow-ups for the GitHub server binding:

- GH_ENTERPRISE_TOKEN is a plain export of the GH_TOKEN placeholder, not
  a conditional, so readers of the sandbox .env that take only
  assignments and exports, the env manifest collector among them, see
  it. gh treats an empty value as unset. The manifest lists it as a
  gated export and the env reference schema is regenerated.
- GH_HOST keeps the brackets of an IPv6 literal, with or without a port.
- A clone drops the github.com endpoint's ports and allowed_ips, which
  describe github.com, not the configured server.
- Only the endpoints the profile does not already name for the server
  are added, so an existing REST endpoint no longer blocks the GraphQL
  one.
- Host and port are read through alias resolution, and when
  api.github.com and github.com give one protocol and path different
  access, the read-only policy wins.
- The oidcHostSuffix comment no longer says GHES is unsupported.

Assisted-by: Claude
Signed-off-by: Wayne Sun <gsun@redhat.com>
@codecov

codecov Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 93.03797% with 11 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
internal/cli/github_profile.go 93.38% 5 Missing and 4 partials ⚠️
internal/cli/run_openai.go 33.33% 1 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ⚠️ Cancelled · Started 5:47 PM UTC · Completed 6:13 PM UTC

Commit: b0772da · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.76

This review was superseded by a newer commit. Check the current pull request HEAD's review status before merging.

Pass the server port as an int from githubForgeHostPort, which drops the
Atoi error paths that could not fail, and test the profile read, parse,
destination and alias cases, plus an http OIDC URL on the server host.

Assisted-by: Claude
Signed-off-by: Wayne Sun <gsun@redhat.com>
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 6:15 PM UTC · Completed 6:28 PM UTC

Commit: 16e14d0 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $2.54

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 9:35 PM UTC · Completed 9:44 PM UTC

Commit: dd4c9ce · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.88

fullsend-ai-review[bot]

This comment was marked as outdated.

addGitHubForgeEndpoints reads literal keys, so a merge key could hide
GH_TOKEN or an endpoint's host and leave the profile unbound while
GH_HOST pointed gh at the server. Run checkProfileKeys first, as the
GitLab binding does.

Assisted-by: Claude
Signed-off-by: Wayne Sun <gsun@redhat.com>
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 9:53 PM UTC · Completed 10:02 PM UTC

Commit: f0405f2 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.72

fullsend-ai-review[bot]

This comment was marked as outdated.

Parse with parseSingleProfileDocument, as the GitLab binding does:
yaml.Unmarshal read only the first document, so a rewrite dropped the
rest. This also makes the run.md sentence on refused profile shapes
hold for the GitHub binding.

Assisted-by: Claude
Signed-off-by: Wayne Sun <gsun@redhat.com>
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 11:01 PM UTC · Completed 11:08 PM UTC

Commit: c2d251a · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.32

@fullsend-ai-review
fullsend-ai-review Bot dismissed stale reviews from themself November 17, 2026 23:08

Superseded by updated review

@waynesun09
waynesun09 added this pull request to the merge queue Nov 19, 2026
Merged via the queue into main with commit 55b1886 Nov 19, 2026
73 checks passed
@waynesun09
waynesun09 deleted the ci-run-configured-github-server branch November 19, 2026 21:59

This branch was successfully deployed

1 active and 1 inactive deployments
site-preview — c2d251aa Deployed Nov 17, 2026 by github-actions[bot]
dev — c2d251aa Deployed Nov 17, 2026 by waynesun09 via behaviour #20566
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/runner Agent runner behavior and lifecycle component/sandbox OpenShell sandbox environment ready-for-merge All reviewers approved — ready to merge risk/moderate PR risk: moderate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants