Repository navigation
chore: add permissions to the daily job (box/box-codegen#910) #956
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: spell-check-lint | |
| on: | |
| pull_request_target: | |
| types: [opened, synchronize, edited] | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| spellcheck-request-title: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout current repository | |
| uses: actions/checkout@v4 | |
| - name: Checkout spellchecker | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: refs/heads/main | |
| repository: box/box-sdk-spellchecker | |
| token: ${{ secrets.DISPATCH_ACCESS_TOKEN }} | |
| path: spellchecker | |
| - name: Execute spellchecker | |
| uses: ./spellchecker | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |