Skip to content

feat(gh): refuse agent deployment review routes - #7571

Merged
dan-petty merged 2 commits into
mainfrom
feat/7534-refuse-deployment-review
Nov 28, 2026
Merged

dan-petty merged 2 commits into
mainfrom
feat/7534-refuse-deployment-review

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Refuse agent callers on POST repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments and POST repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule under route class deployment review, keeping person callers and GET reads allowed. Updated GHCommandHelp.api, SECURITY.md, regenerated docs/commands/gh.md and docs/CLI_REFERENCE.md, and added unit and CLI guard tests.

Checks:

  • uv run pytest tests/github/test_gh_api_agent_guard.py tests/commands/test_gh_cmd.py (145 passed)
  • uv run devops openspec check, CI static gates (10/10), and devops ci fail-to-pass --base origin/main passed

Closes #7534

Change: openspec/changes/archive/2026-11-28-7534-refuse-deployment-review/

@dan-petty dan-petty added type/feature Type feature: a new function scope/gh The devops gh commands labels Nov 28, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 28, 2026 08:55
@dan-petty

Copy link
Copy Markdown
Owner Author

Check results

Head commit: 2b393af2b147bc7aa28bebfaccecf0d699d7c015

Check Conclusion Link
Tests & Coverage success run
devops-cli success run
zizmor success run
trivy-config success run
Trivy neutral run
Changed-Test Independence success run
Plan Check skipped run
CodeQL success run
Fail-to-Pass Check skipped run
Tests on Main skipped run
Dependency Freshness skipped run
Test Job Duration skipped run
Changed-Test Independence (run 3 of 3) success run
Tests & Coverage (shard 5 of 5) success run
Tests & Coverage (shard 2 of 5) success run
Static Analysis success run
Changed-Test Independence (run 1 of 3) success run
Tests & Coverage (shard 3 of 5) success run
Service Image success run
Design Tokens success run
Changed-Test Independence (run 2 of 3) success run
Tests & Coverage (shard 1 of 5) success run
Tests & Coverage (shard 4 of 5) success run
Runner Image success run
Semantic PR title success run
Docs Site Build success run
Analyze (actions) success run
Analyze (python) success run

Skipped check: Trivy
Skipped check: Plan Check
Skipped check: Fail-to-Pass Check
Skipped check: Tests on Main
Skipped check: Dependency Freshness
Skipped check: Test Job Duration

@dan-petty
dan-petty merged commit b3c8edf into main Nov 28, 2026
28 checks passed
@dan-petty
dan-petty deleted the feat/7534-refuse-deployment-review branch November 28, 2026 12:33
dan-petty-release Bot added a commit that referenced this pull request Nov 28, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.233.0](v0.232.11...v0.233.0)
(2026-11-28)


### Features

* **gh:** refuse agent deployment review routes
([#7571](#7571))
([b3c8edf](b3c8edf))


### Bug Fixes

* **ci:** run Tests & Coverage in six balanced shards
([#7572](#7572))
([e6f5026](e6f5026)),
closes [#7550](#7550)
* **roadmap:** freeze clock in alternatives gauge test
([#7584](#7584))
([611de9d](611de9d))
* **roadmap:** the other rows leave out an item that left
([#7566](#7566))
([97c4576](97c4576))
* **security:** set non-root securityContext on ollama-profiles fixture
([#7567](#7567))
([53e5aaa](53e5aaa))
* **security:** skip .venv in TrivyConfigScanner
([#7570](#7570))
([1502b93](1502b93))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/gh The devops gh commands type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(gh): refuse an agent's review of a pending deployment

1 participant