mirror of
https://github.com/pezkuwichain/pezkuwi-dev.git
synced 2026-10-22 11:46:18 +00:00
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.
22 lines
465 B
YAML
22 lines
465 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:
|
|
merge:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: jacogr/action-merge@d2d64b4545acd93b0a9575177d3d215ae3f92029
|
|
with:
|
|
checks: pr (build),pr (docs),pr (lint),pr (test)
|
|
labels: -auto
|
|
strategy: squash
|
|
token: ${{ secrets.GH_PAT_BOT }}
|