-
-
Notifications
You must be signed in to change notification settings - Fork 286
[CI] Add changelog bot workflow #1272
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
base: master
Are you sure you want to change the base?
Changes from 3 commits
0041ee2
4781572
a6055ec
2be8650
b6f6572
80f7be6
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 | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,19 @@ | ||||||||||||
| name: Changelog Bot | ||||||||||||
|
|
||||||||||||
| on: | ||||||||||||
| # Trigger when a PR review is submitted with approval | ||||||||||||
| pull_request_review: | ||||||||||||
| types: [submitted] | ||||||||||||
|
|
||||||||||||
| jobs: | ||||||||||||
| changelog: | ||||||||||||
| if: | | ||||||||||||
| github.event.review.state == 'approved' && | ||||||||||||
| (github.event.review.author_association == 'OWNER' || | ||||||||||||
| github.event.review.author_association == 'MEMBER' || | ||||||||||||
| github.event.review.author_association == 'COLLABORATOR') | ||||||||||||
|
||||||||||||
| (github.event.review.author_association == 'OWNER' || | |
| github.event.review.author_association == 'MEMBER' || | |
| github.event.review.author_association == 'COLLABORATOR') | |
| (github.event.review.author_association == 'OWNER' || | |
| github.event.review.author_association == 'MEMBER') |
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In @.github/workflows/bot-changelog.yml around lines 12 - 14, The workflow's
review-author gating currently allows github.event.review.author_association ==
'COLLABORATOR' which grants privileged secrets to collaborators; remove the
'COLLABORATOR' check so the condition only permits 'OWNER' or 'MEMBER' (i.e.,
leave github.event.review.author_association == 'OWNER' ||
github.event.review.author_association == 'MEMBER'), updating the conditional
expression around github.event.review.author_association accordingly to prevent
collaborators from triggering this job.
Uh oh!
There was an error while loading. Please reload this page.