mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-29 04:59:51 +00:00
Fix close-issues workflow permissions
- Add contents: read permission for checkout - Use github.token instead of secrets.GITHUB_TOKEN
This commit is contained in:
parent
79e9d19019
commit
45c2573979
1 changed files with 2 additions and 1 deletions
3
.github/workflows/close-issues.yml
vendored
3
.github/workflows/close-issues.yml
vendored
|
|
@ -9,6 +9,7 @@ jobs:
|
|||
close:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
issues: write
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
|
@ -19,5 +20,5 @@ jobs:
|
|||
|
||||
- name: Close stale issues
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
run: bun script/github/close-issues.ts
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue