Would you block a PR that changes GitHub Actions contents permission from read to write?

작성자

카테고리:

← 피드로
DEV Community · JinHyuk Sung · 2026-06-30 개발(SW)

JinHyuk Sung

A sandbox PR changed one GitHub Actions workflow permission:

permissions:
  contents: write

Enter fullscreen mode Exit fullscreen mode

The base branch had:

permissions:
  contents: read

Enter fullscreen mode Exit fullscreen mode

That is the concrete case I am trying to calibrate.

Agent Gate reported:

Agent Gate: NEEDS HUMAN DECISION
Decision: warn
Why: contents permission increased from read to write.
Path: .github/workflows/demo-release.yml
Recommended next step: review the workflow permission change before merging.
Policy status: warning today; eligible to become a merge gate after tuning.

Rule: workflow/permission-escalation
Policy source: built-in default

Enter fullscreen mode Exit fullscreen mode

Live PR comment proof:
https://github.com/sjh9714/agent-gate-install-smoke-20260617/pull/13#issuecomment-4828248162

What matters to me is that this did not depend on an LLM noticing the change.

The Action did not:

  • checkout PR code
  • run repository scripts
  • call an LLM at runtime
  • load policy from the PR head branch

The first-run repo config was also absent. Agent Gate used its built-in default policy and recorded:

configSource: default

Enter fullscreen mode Exit fullscreen mode

I am not trying to claim that the PR is automatically bad. A permission increase can be intentional.

The question is what CI should do when it sees this kind of boundary change.

My current default is:

  • warn on first run
  • keep the report human-readable
  • let teams promote this finding to block after tuning

For AI-generated PRs, I think deterministic CI evidence is useful because agent changes can touch workflow and security boundaries as part of ordinary work.

But this specific finding is broader than AI: any PR that raises GitHub Actions permissions may deserve deliberate review.

Question:

In your repo, is this block, warn, or noise?

What extra evidence would make it actionable?

Repo:
https://github.com/sjh9714/Agent-Gate

Disclosure: I used AI assistance to help draft and edit this article, and I reviewed the technical claims before publishing.

원문에서 계속 ↗

코멘트

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다