When reviewing GitHub Actions used for CI/CD automation, verify three things:
1) Repo context is available
.github/labeler.yml), ensure actions/checkout is present.2) Automation is testable without merging
3) Permissions match the actual API usage
permissions block grants only what’s needed for the specific targets the action touches (e.g., PRs vs issues), and don’t assume old permission requirements won’t resurface.Example patterns:
name: Checkout uses: actions/checkout@v4
name: Apply labels using labeler uses: actions/labeler@v5 with: pr-number: ${{ steps.pr-number.outputs.number }} repo-token: ${{ secrets.GITHUB_TOKEN }} configuration-path: .github/labeler.yml ```
Apply this as a checklist during CI/CD workflow reviews to prevent silent misconfigurations, missing file access, and hard-to-test automation that can impact real PRs.