Skip to content

Commit

Permalink
Document GitHub API permissions (#812)
Browse files Browse the repository at this point in the history
  • Loading branch information
xalvarez authored Jan 2, 2024
1 parent 1150881 commit ce7341e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
branches:
- main

permissions:
pull-requests: read

jobs:
build:
runs-on: ubuntu-latest
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@ In the example above, files with `.example` extension won't be allowed to be cha

**Note**: This Action supports pull request events only.

## GITHUB_TOKEN permissions

The required GITHUB_TOKEN permissions are: `pull-requests: read`. Therefore, you may configure your workflow or job's
permissions as follows:

```
permissions:
pull-requests: read
```

## Development

To work on this Action you first need to install npm dependencies:
Expand Down

0 comments on commit ce7341e

Please sign in to comment.