Skip to content

Commit

Permalink
chore: Add permissions for package test
Browse files Browse the repository at this point in the history
  • Loading branch information
yanguoyu committed Mar 9, 2024
1 parent 01066b8 commit 21bfa1f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/package_for_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ jobs:

runs-on: ${{ matrix.os }}

permissions:
contents: read
pull-requests: read

name: ${{ matrix.os }}(Node.js ${{ matrix.node }})

env:
Expand Down Expand Up @@ -208,6 +212,10 @@ jobs:
needs: [packaging]
name: Append links to the Pull Request
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: read
issue: write
steps:
- name: Comment by push event
if: ${{ github.event_name == 'push' }}
Expand All @@ -230,6 +238,9 @@ jobs:
if: ${{ always() && needs.packaging.result == 'failure' }}
name: Append failed comment to the comment
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: read
steps:
- name: Comment by pull request comment event when package failed
if: ${{ github.event_name == 'issue_comment' }}
Expand Down

0 comments on commit 21bfa1f

Please sign in to comment.