Skip to content

Commit

Permalink
specify repository and issue write permission to close issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jhkennedy committed Nov 4, 2024
1 parent 84be54e commit ba84843
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/issue-metrics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:

permissions:
contents: read
issues: write

jobs:
build:
Expand Down Expand Up @@ -44,6 +45,9 @@ jobs:
content-filepath: ./issue_metrics.md

- name: Close Issue
run: gh issue close "${{steps.create_issue.outputs.issue-number}}" --reason "not planned"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh issue close "${{steps.create_issue.outputs.issue-number}}" \
--reason "not planned" \
--repo ${{ github.repository }}

0 comments on commit ba84843

Please sign in to comment.