name: Lint Commit Message on: pull_request: permissions: contents: read # Set default read-only permissions jobs: lint: name: Lint Commit Message runs-on: ubuntu-latest if: github.event.pull_request.user.type != 'Bot' steps: - name: Harden the Runner (Step Security) uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 # v2.21.1 with: egress-policy: audit - name: Checkout Repo uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 persist-credentials: false - name: Setup Bun uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0 with: bun-version: latest - name: Install Dependencies run: bun install --frozen-lockfile - name: Validate PR commits with commitlint run: > bunx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose