Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/scripts/merge-order-guard-policy.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,9 @@ test("declares the repository code owner for GitHub automation and policy change

test("live CLOSED warns upper PRs while OPEN or MERGED resolves the same bot comment", () => {
assert.match(stackNotify, /issues: write/);
// 코멘트 대상이 PR 이면 GitHub 은 pull-requests 쓰기를 요구한다. 이 칸이 read 로
// 머물러 안내 코멘트가 403 으로 죽은 적이 있다(#2068).
assert.match(stackNotify, /pull-requests: write/);
assert.match(stackNotify, /live_state=\$\(jq -r '\.state'/);
assert.match(stackNotify, /CLOSED\)[\s\S]*notice_state="active"/);
assert.match(stackNotify, /OPEN\)[\s\S]*notice_state="resolved"/);
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/stack-integrity-notify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ jobs:
permissions:
contents: read
issues: write
pull-requests: read
# 이 job 이 코멘트를 남기는 대상은 언제나 PR 이다. GitHub 은 issues/{n}/comments 의
# 필요 스코프를 대상 타입으로 가르기 때문에 PR 에 쓰려면 pull-requests 쓰기가 있어야 한다.
# read 로 두면 목록 GET 은 통과하고 첫 POST 에서 403 이 난다(#2068).
pull-requests: write
steps:
- name: Clone stack policy from the default branch
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
Expand Down