Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

chore(ci): document pull_request_target usage in bot workflows

justineac0a5e0df6d
diff --git a/.github/workflows/auto-assign.yml b/.github/workflows/auto-assign.yml
index b50f599a6..065f01c10 100644
--- a/.github/workflows/auto-assign.yml
+++ b/.github/workflows/auto-assign.yml
@@ -2,7 +2,9 @@ name: Auto Assign
on:
issues:
types: [opened]
- pull_request_target:
+ # zizmor: ignore[dangerous-triggers] Assigns pull requests via the API
+ # only; never checks out or executes untrusted code.
+ pull_request_target:
types: [opened]
jobs:
run:
diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.yml
index 17c779e76..75fdb1718 100644
--- a/.github/workflows/auto-merge.yml
+++ b/.github/workflows/auto-merge.yml
@@ -2,6 +2,9 @@ name: Dependabot Auto-Merge
# Never check out or execute pull-request content in this privileged workflow.
on:
+ # zizmor: ignore[dangerous-triggers] Never checks out or executes pull
+ # request content; merges via the GitHub API only after required checks pass
+ # and the head commit is pinned.
pull_request_target:
types: [opened, synchronize, reopened, ready_for_review]
diff --git a/.github/workflows/pr-size-labeler.yml b/.github/workflows/pr-size-labeler.yml
index 6c17c3836..0cb572c98 100644
--- a/.github/workflows/pr-size-labeler.yml
+++ b/.github/workflows/pr-size-labeler.yml
@@ -1,6 +1,8 @@
name: PR Size Labeler
on:
+ # zizmor: ignore[dangerous-triggers] Labels pull requests via the API;
+ # checks out only the trusted base-branch size configuration.
pull_request_target:
types: [opened, synchronize, reopened]