You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 02c0ded
Browse filesBrowse the repository at this point in the historyBrowse files
@@ -21,7 +21,7 @@ This specification defines access control extensions for the GitHub MCP (Model C
21
21
22
22
## Status of This Document
23
23
24
-
This section describes the status of this document at the time of publication. This is a draft specification and may be updated, replaced, or made obsolete by other documents at any time.
24
+
The compiler-side guard-policy integration is implemented; runtime enforcement is provided by the external MCP Gateway. Complete Conformance remains deferred as described in §2.1.
25
25
26
26
This document is governed by the GitHub Agentic Workflows project specifications process.
27
27
@@ -149,8 +149,11 @@ A **Complete Conforming Implementation** MUST satisfy Basic Conformance and:
149
149
- Enforce all access controls at runtime through gateway middleware
150
150
- Support all configuration fields in combination
151
151
152
-
These are normative target requirements, not a claim that the local `gh-aw`
153
-
compiler implements every field. As verified on 2026-11-16, `roles` and
152
+
These are normative target requirements. The local `gh-aw` compiler implements
153
+
the configuration and validation portions of Basic Conformance; runtime
154
+
enforcement and standardized responses depend on the external MCP Gateway, so
155
+
this document does not claim end-to-end Basic Conformance for the compiler.
156
+
Complete Conformance is not claimed. As verified on 2026-11-16, `roles` and
154
157
`private-repos` remain deferred in the local compiler; use of either field is
155
158
rejected rather than silently ignored. Track local support in
156
159
[issue #78412](https://github.com/github/gh-aw/issues/78412). The local
Copy file name to clipboardExpand all lines: scratchpad/guard-policies-specification.md
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -156,7 +156,8 @@ When GitHub guard policies are configured, the compiler automatically derives a
156
156
- **MUST derive a `write-sink` guard policy** for the safe-outputs MCP server whenever a GitHub guard policy (`allowed-repos` or `min-integrity`) is present in the workflow frontmatter. The derived policy MUST be applied before the workflow is executed.
157
157
- **MUST map `allowed-repos: "all"` or `allowed-repos: "public"` to `accept: ["*"]`**, allowing all safe output operations. Implementations MUST NOT restrict the write-sink scope when the GitHub guard policy already permits all repositories.
158
158
- **MUST transform each repository pattern** in an `allowed-repos` array to a `private:`-prefixed accept entry. Owner-wildcard patterns (`owner/*`) MUST be transformed to `private:owner` (the trailing `/*` is stripped). Prefix-wildcard patterns (`owner/prefix*`) MUST be transformed to `private:owner/prefix*` (the prefix is preserved). Exact repository patterns (`owner/repo`) MUST be transformed to `private:owner/repo`.
159
-
- **MUST NOT include duplicate accept entries** in the derived `write-sink` policy. If multiple input patterns resolve to the same `private:` value, the implementation MUST deduplicate before emitting the accept list.
159
+
- **MUST NOT include duplicate accept entries** in the derived `write-sink` policy. If multiple input patterns resolve to the same `private:` value, the implementation MUST deduplicate before emitting the accept list, preserving first-seen order.
160
+
- **MUST emit `sink-visibility: "${GH_AW_SINK_VISIBILITY}"`** in the derived `write-sink` policy. The environment variable supplies the destination repository visibility at runtime.
160
161
- **SHOULD log a debug-level message** when a guard policy is derived, identifying the source GitHub `allowed-repos` value and the resulting accept list. This assists operators in diagnosing unexpected policy behavior.
161
162
- **MUST return `nil`** (no derived policy) when no GitHub guard policy fields are present on the tool configuration. The absence of a guard policy MUST NOT be treated as an implicit `accept: ["*"]` — the decision to omit the policy is intentional and MUST be preserved.
Copy file name to clipboardExpand all lines: specs/advisory-handoff/README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@ This model describes the maintainer-driven handoff to a temporary private GitHub
9
9
3. Run `gh aw advisory inspect <GHSA-ID> --print-patch` in a private terminal and type `yes` to review the untrusted patch and the destination. The flag requires terminal stdin and stdout. Omit it for metadata and the digest in scripts or CI. The digest identifies the handoff; it does not attest that the fix passed tests.
10
10
4. Run `gh aw advisory transfer <GHSA-ID> --approve <digest>`. Transfer verifies the handoff again and attempts to create only the destination branch. Open the PR from the advisory page. If transfer warns about base drift, check whether the branch already exists before rebasing and retesting.
11
11
12
+
Recording requires an existing temporary private advisory fork unless `--create-fork` is supplied. If the fork is missing, the error hints to use `advisory record --create-fork` or create it in GitHub.
13
+
12
14
## Model boundary
13
15
14
16
`sideReady` represents the verified side repository. Each GHSA has independent fork, record, review, transfer, and branch state. `ClaimFork` persists the local marker; `SendForkRequest` and `ProvisionFork` separate requesting the fork from its appearance. Retrying an identical record is a stuttering step.
0 commit comments