name: labeler # Default to 'contents: read', which grants actions to read commits. # # If any permission is set, any permission not included in the list is # implicitly set to "none". # # see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions permissions: contents: read concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true on: pull_request_target: jobs: labeler: runs-on: ubuntu-latest permissions: # same as global permission contents: read # required for writing labels pull-requests: write steps: - name: Run uses: actions/labeler@v5 with: sync-labels: true