Fixes: #14518 A recent change seems to have broken the permissions of the auto-assign action. This tries to fix this by making permissions more specific. Signed-off-by: Michael Adam <obnox@samba.org>
23 lines
535 B
YAML
23 lines
535 B
YAML
name: Assign issue to contributor
|
|
on:
|
|
issue_comment:
|
|
types: [created, edited]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
assign:
|
|
permissions:
|
|
# write permissions are needed to assign the issue.
|
|
issues: write
|
|
name: Run self assign job
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: take the issue
|
|
uses: bdougie/take-action@main
|
|
with:
|
|
message: Thanks for taking this issue! Let us know if you have any questions!
|
|
trigger: /assign
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|