Files
pezkuwi-dev/.github/workflows/auto-approve.yml
T
Satoshi Qazi Muhammed fba1989e0f ci: give every workflow an explicit least-privilege GITHUB_TOKEN
CodeQL actions/missing-workflow-permissions: auto-approve.yml, auto-merge.yml, lock.yml, pr-any.yml, push-master.yml had no permissions block, so their jobs received the repository default token. Read-only where nothing writes through GITHUB_TOKEN; lock-threads gets the issues/pull-requests/discussions write it documents; workflows that write do it with a separate bot or app token, so GITHUB_TOKEN stays read-only.
2026-10-20 22:29:31 +04:00

22 lines
591 B
YAML

name: bot
on:
pull_request:
types: [labeled]
# Writes go through a separate bot token or app token; GITHUB_TOKEN stays read-only.
permissions:
contents: read
jobs:
approve:
if: "! startsWith(github.event.head_commit.message, '[CI Skip]') && (!github.event.pull_request || github.event.pull_request.head.repo.full_name == github.repository)"
runs-on: ubuntu-latest
steps:
- uses: jacogr/action-approve@795afd1dd096a2071d7ec98740661af4e853b7da
with:
authors: jacogr, TarikGul
labels: -auto
token: ${{ secrets.GH_PAT_BOT }}