refactor: Add permissions for top-issues workflow

This commit is contained in:
Sheng Fan 2025-03-16 19:56:37 +08:00
parent 16290a120b
commit 491f27358c

View File

@ -3,15 +3,19 @@ on:
schedule: schedule:
- cron: '0 0/2 * * *' - cron: '0 0/2 * * *'
workflow_dispatch: workflow_dispatch:
jobs: jobs:
ShowAndLabelTopIssues: ShowAndLabelTopIssues:
permissions:
issues: write
pull-requests: write
actions: read
contents: read
name: Display and label top issues name: Display and label top issues
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.repository == 'mannaandpoem/OpenManus' if: github.repository == 'mannaandpoem/OpenManus'
steps: steps:
- name: Run top issues action - name: Run top issues action
uses: rickstaa/top-issues-action@7e8dda5d5ae3087670f9094b9724a9a091fc3ba1 # v1.3.101 uses: rickstaa/top-issues-action@7e8dda5d5ae3087670f9094b9724a9a091fc3ba1 # v1.3.101
env: env:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
with: with: