Skip to content
Closed
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
6 changes: 5 additions & 1 deletion .github/workflows/skill-optimize-apply.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ on:

jobs:
apply:
# Only trusted users may trigger this write-capable job. Without an
# author-association gate, any GitHub user could post "/apply-optimize"
# on a PR and run a job that holds contents:write / pull-requests:write.
if: >
github.event.issue.pull_request &&
contains(github.event.comment.body, '/apply-optimize')
contains(github.event.comment.body, '/apply-optimize') &&
contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.comment.author_association)
runs-on: ubuntu-latest
permissions:
pull-requests: write
Expand Down