github.com/argoproj/argo-cd/v2@v2.10.9/.github/workflows/pr-title-check.yml (about)

     1  name: "Lint PR"
     2  
     3  on:
     4    pull_request_target:
     5      types: [opened, edited, reopened, synchronize]
     6  
     7  # IMPORTANT: No checkout actions, scripts, or builds should be added to this workflow. Permissions should always be used
     8  # with extreme caution. https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target
     9  permissions: {}
    10  
    11  # PR updates can happen in quick succession leading to this
    12  # workflow being trigger a number of times. This limits it
    13  # to one run per PR.
    14  concurrency:
    15    group: ${{ github.workflow }}-${{ github.ref }}
    16  
    17  
    18  jobs:
    19    validate:
    20      permissions:
    21        contents: read
    22        pull-requests: read
    23      name: Validate PR Title
    24      runs-on: ubuntu-latest
    25      steps:
    26        - uses: thehanimo/pr-title-checker@0cf5902181e78341bb97bb06646396e5bd354b3f # v1.4.0
    27          with:
    28            GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    29            configuration_path: ".github/pr-title-checker-config.json"