mirror of
https://github.com/NVIDIA/OpenShell.git
synced 2026-10-18 05:39:50 +08:00
* feat(gator): render human-readable review findings Signed-off-by: John Myers <johntmyers@users.noreply.github.com> * feat(gator): collapse operational review metadata Signed-off-by: John Myers <johntmyers@users.noreply.github.com> * fix(gator): support canonical sandbox startup Signed-off-by: John Myers <johntmyers@users.noreply.github.com> * fix(gator): preserve credential placeholder identity Signed-off-by: John Myers <johntmyers@users.noreply.github.com> * feat(gator): resolve addressed review threads Signed-off-by: John Myers <johntmyers@users.noreply.github.com> * fix(agents): preserve provider profile revisions Signed-off-by: John Myers <johntmyers@users.noreply.github.com> --------- Signed-off-by: John Myers <johntmyers@users.noreply.github.com> Co-authored-by: John Myers <johntmyers@users.noreply.github.com>
110 lines
4.8 KiB
YAML
110 lines
4.8 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
|
|
- allow:
|
|
operation_type: mutation
|
|
operation_name: ResolveGatorReviewThread
|
|
fields: [resolveReviewThread]
|
|
- 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/**
|