Configure Github workflow and job level permissions #770
Workflow file for this run
This file contains 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: Labeler | |
on: | |
pull_request: | |
branches: | |
- main | |
# Permission forced by repo-level setting; only elevate on job-level | |
permissions: | |
contents: read | |
# packages: read | |
jobs: | |
label: | |
name: Add label for PRs | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/labeler@v5 | |
with: | |
repo-token: "${{ secrets.GITHUB_TOKEN }}" | |
configuration-path: .github/workflows/labeler/labels.yaml |