Repository navigation
fix(operations): harden runner audit credential and assignment evidence #394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 19 commits
e7ecfea
bdb4864
a39f9fd
f0d4aed
fb04907
9f2557d
2cd4103
b4e0f99
5752552
fa0cefd
627b0cb
c58fed9
61c6892
bbbfe8e
0634ba5
fe09e34
5f861fb
b0a7a38
c866654
f387edf
c4a0ffb
f4a4bc9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,6 +20,7 @@ describe("runner-assignment operator documentation contract", () => { | |
| "ContextualWisdomLab/noema", | ||
| "NOEMA_ACTIONS_AUDIT_HEAD_SHA", | ||
| "NOEMA_ACTIONS_AUDIT_RUN_IDS", | ||
| "NOEMA_MAINTAINER_TOKEN_PATH", | ||
| "filter=all", | ||
| "PENDING", | ||
| "runner_assignment_stalled", | ||
|
|
@@ -39,6 +40,12 @@ describe("runner-assignment operator documentation contract", () => { | |
| expect(doctoring).toContain(phrase); | ||
| } | ||
|
|
||
| expect(doctoring).toContain("`started_at` is not runner-assignment authority"); | ||
| expect(doctoring).toContain("positive `runner_id` or a non-empty `runner_name`"); | ||
| expect(doctoring).not.toContain("such as `started_at`, a positive `runner_id`"); | ||
| expect(doctoring).not.toContain("export GH_TOKEN="); | ||
| expect(doctoring).toContain("owner-only delegated token capability file"); | ||
|
|
||
| expect(changelog).toContain("`operations:runner-assignment` audit"); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Doctoring and this contract test now record capability-file ingress and Do not merge
Keep the existing phrases this test already requires (
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Doctoring and this contract test now record capability-file ingress and Do not merge this head. Add an Unreleased bullet that names all three operator-visible changes, or land #401 which already does:
Keep the existing phrases this test already requires ( |
||
| expect(changelog).toContain("runner assignment"); | ||
| expect(changelog).toContain("required Check"); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doctoring and this contract test now record capability-file ingress and
started_atlosing assignment authority.CHANGELOG.mdUnreleased still only describes the original audit addition.Before merge, add an Unreleased bullet that names all three operator-visible behavior changes:
operations:runner-assignmentreadsNOEMA_MAINTAINER_TOKEN_PATHand fails closed when only ambientGH_TOKENis present;ghspawn/stderr diagnostics exact-redact the active token as[REDACTED];runner_idor non-emptyrunner_name— a queuedstarted_atis not assignment evidence.Keep the existing phrases this test already requires (
operations:runner-assignmentaudit, runner assignment, required Check, formal review) so the contract stays green.