Files
OpenShell/scripts/agents/gator/providers/github-gator.yaml
45060f4492 feat(agents): add manifest-driven gator agent (#1826)
* chore(gator): add gator gate skill

* chore(gator): add sandbox launcher scaffold

* chore(gator): add codex image and docs checks

* chore(gator): fold approved provider policy rules

* chore(gator): add deterministic reviewer runner

* chore(gator): clarify ok-to-test comments

* chore(gator): structure launcher harnesses

* chore(gator): require e2e for dependabot

* chore(gator): add codex refresh profile

* chore(gator): wip manifest agent launcher

* feat(agents): supervise watch cycles in sandbox

* fix(agents): preserve gateway refresh state

* fix(gator): continue human response threads

* fix(agents): keep watch supervisor retrying

* fix(agents): use refreshed Codex credential aliases

* fix(gator): avoid misleading gh auth checks

* docs(agents): remove architecture build update

* fix(gator): use REST-backed GitHub writes

* fix(agents): bake immutable agent payloads

* fix(agents): upload writable agent workspace

* fix(agents): surface gator watch progress

* fix(agents): prevent codex stdin hang

* fix(agents): align codex subagent input

* fix(agents): heartbeat during active cycles

* fix(agents): clean up heartbeat sleep

* fix(agents): disable gh telemetry in codex harness

* fix(agents): reconcile closed gator PRs

* fix(agents): query closed gator PR labels separately

* fix(agents): tolerate rotated credential placeholders

* fix(agents): enforce gator same-sha comment guard

Signed-off-by: John Myers <johntmyers@users.noreply.github.com>

* docs(agents): scope gator trusted commentary

Signed-off-by: John Myers <johntmyers@users.noreply.github.com>

* fix(gator): treat reviewer failures as transient

Signed-off-by: Evan Lezar <elezar@nvidia.com>

* feat(agents): refine gator supervised workflow

Signed-off-by: John Myers <johntmyers@users.noreply.github.com>

* fix(agents): stream codex prompts via stdin

Signed-off-by: John Myers <johntmyers@users.noreply.github.com>

* docs(agents): clarify trusted gator responses

Signed-off-by: John Myers <johntmyers@users.noreply.github.com>

* refactor(agents): scope gator PR to scripts

Signed-off-by: John Myers <johntmyers@users.noreply.github.com>

---------

Signed-off-by: John Myers <johntmyers@users.noreply.github.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Co-authored-by: John Myers <johntmyers@users.noreply.github.com>
Co-authored-by: Evan Lezar <elezar@nvidia.com>
2026-07-01 10:22:40 -07:00

106 lines
4.7 KiB
YAML

# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
id: github-gator
display_name: GitHub Gator
description: Repo-scoped GitHub access for the OpenShell gator gate agent
category: source_control
credentials:
- name: GITHUB_TOKEN
description: GitHub token used by the gator gate agent
env_vars: [GITHUB_TOKEN, GH_TOKEN]
required: true
auth_style: bearer
header_name: authorization
discovery:
credentials: [GITHUB_TOKEN]
endpoints:
- host: api.github.com
port: 443
protocol: rest
enforcement: enforce
rules:
- allow: { method: GET, path: /user }
- allow:
method: GET
path: /search/issues
query:
q:
any:
- "*repo:NVIDIA/OpenShell*"
- "*repo:NVIDIA/OpenShell-Community*"
- allow: { method: GET, path: /repos/NVIDIA/OpenShell }
- allow: { method: GET, path: /repos/NVIDIA/OpenShell/** }
- allow: { method: POST, path: /repos/NVIDIA/OpenShell/issues/*/comments }
- allow: { method: PATCH, path: /repos/NVIDIA/OpenShell/issues/comments/* }
- allow: { method: POST, path: /repos/NVIDIA/OpenShell/issues/*/labels }
- allow: { method: PUT, path: /repos/NVIDIA/OpenShell/issues/*/labels }
- allow: { method: DELETE, path: /repos/NVIDIA/OpenShell/issues/*/labels/* }
- allow: { method: PATCH, path: /repos/NVIDIA/OpenShell/issues/* }
- allow: { method: POST, path: /repos/NVIDIA/OpenShell/labels }
- allow: { method: PATCH, path: /repos/NVIDIA/OpenShell/labels/* }
- allow: { method: POST, path: /repos/NVIDIA/OpenShell/pulls/*/comments }
- allow: { method: POST, path: /repos/NVIDIA/OpenShell/pulls/*/reviews }
- allow: { method: POST, path: /repos/NVIDIA/OpenShell/pulls/*/reviews/*/comments }
- allow: { method: POST, path: /repos/NVIDIA/OpenShell/statuses/* }
- allow: { method: GET, path: /repos/NVIDIA/OpenShell-Community }
- allow: { method: GET, path: /repos/NVIDIA/OpenShell-Community/** }
- allow: { method: POST, path: /repos/NVIDIA/OpenShell-Community/issues/*/comments }
- allow: { method: PATCH, path: /repos/NVIDIA/OpenShell-Community/issues/comments/* }
- allow: { method: POST, path: /repos/NVIDIA/OpenShell-Community/issues/*/labels }
- allow: { method: PUT, path: /repos/NVIDIA/OpenShell-Community/issues/*/labels }
- allow: { method: DELETE, path: /repos/NVIDIA/OpenShell-Community/issues/*/labels/* }
- allow: { method: PATCH, path: /repos/NVIDIA/OpenShell-Community/issues/* }
- allow: { method: POST, path: /repos/NVIDIA/OpenShell-Community/labels }
- allow: { method: PATCH, path: /repos/NVIDIA/OpenShell-Community/labels/* }
- allow: { method: POST, path: /repos/NVIDIA/OpenShell-Community/pulls/*/comments }
- allow: { method: POST, path: /repos/NVIDIA/OpenShell-Community/pulls/*/reviews }
- allow: { method: POST, path: /repos/NVIDIA/OpenShell-Community/pulls/*/reviews/*/comments }
- allow: { method: POST, path: /repos/NVIDIA/OpenShell-Community/statuses/* }
- host: api.github.com
port: 443
path: /graphql
protocol: graphql
enforcement: enforce
rules:
- allow:
operation_type: query
- host: github.com
port: 443
protocol: rest
enforcement: enforce
rules:
- allow: { method: GET, path: /NVIDIA/OpenShell }
- allow: { method: GET, path: /NVIDIA/OpenShell/** }
- allow: { method: GET, path: /NVIDIA/OpenShell.git/** }
- allow: { method: POST, path: /NVIDIA/OpenShell/**/git-upload-pack }
- allow: { method: POST, path: /NVIDIA/OpenShell.git/**/git-upload-pack }
- allow: { method: GET, path: /NVIDIA/OpenShell-Community }
- allow: { method: GET, path: /NVIDIA/OpenShell-Community/** }
- allow: { method: GET, path: /NVIDIA/OpenShell-Community.git/** }
- allow: { method: POST, path: /NVIDIA/OpenShell-Community/**/git-upload-pack }
- allow: { method: POST, path: /NVIDIA/OpenShell-Community.git/**/git-upload-pack }
- host: codeload.github.com
port: 443
protocol: rest
enforcement: enforce
rules:
- allow: { method: GET, path: /NVIDIA/OpenShell/** }
- allow: { method: GET, path: /NVIDIA/OpenShell-Community/** }
- host: results-receiver.actions.githubusercontent.com
port: 443
protocol: rest
enforcement: enforce
rules:
- allow: { method: GET, path: /rest/runs/** }
binaries:
- /usr/bin/gh
- /usr/local/bin/gh
- /usr/bin/curl
- /usr/local/bin/curl
- /usr/bin/git
- /usr/local/bin/git
- /usr/bin/codex
- /usr/local/bin/codex
- /usr/lib/node_modules/@openai/**