Skip to content

Commit

Permalink
Using gh run download requires actions:read
Browse files Browse the repository at this point in the history
check-spelling@v0.0.23 will use gh run download to retrieve artifacts which requires actions:read.
  • Loading branch information
jsoref committed Jan 29, 2024
1 parent 3402c02 commit 2c93afa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/spelling.yml
Expand Up @@ -114,6 +114,7 @@ jobs:
runs-on: ubuntu-latest
needs: spelling
permissions:
actions: read
contents: write
if: (success() || failure()) && needs.spelling.outputs.followup && github.event_name == 'push'
steps:
Expand All @@ -130,6 +131,7 @@ jobs:
runs-on: ubuntu-latest
needs: spelling
permissions:
actions: read
contents: read
pull-requests: write
if: (success() || failure()) && needs.spelling.outputs.followup && contains(github.event_name, 'pull_request')
Expand Down

0 comments on commit 2c93afa

Please sign in to comment.