name: 'Find issues with missing labels'

on:
  schedule:
    # Run every Sunday at midnight
    - cron: '0 0 * * 0'

permissions: {}

jobs:
  check-unlabeled-issues:
    runs-on: ubuntu-latest

    permissions:
      issues: write

    env:
      GH_TOKEN: ${{ github.token }}

    steps:
      - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

      - name: Search for issues with missing labels
        run: bash ./tools/find-issues-with-missing-labels.sh
