Debian Codegraph @

.github/TODO.md

raw symbols SCIP
1 <!--
2 ~ Copyright (c) 2026 Arista Networks, Inc.
3 ~ Use of this source code is governed by the Apache License 2.0
4 ~ that can be found in the LICENSE file.
5 -->
6
7 # Zizmor Follow-ups
8
9 ## `pull_request_target` workflows
10
11 Zizmor flags `pull_request_target` because these workflows run with base-repository
12 permissions while reacting to pull request activity. This is dangerous if a workflow
13 checks out untrusted PR code, runs PR-controlled scripts, or interpolates PR metadata
14 directly into shell commands.
15
16 The current ignores are intentional because these workflows operate on PR metadata
17 and need write permissions that `pull_request` workflows may not receive for forked
18 pull requests.
19
20 ### `.github/workflows/pr-conflicts.yml`
21
22 Current reason to keep `pull_request_target`:
23
24 - The workflow labels PRs and posts conflict-resolution comments.
25 - It does not check out or execute PR code.
26 - It needs `issues: write` and `pull-requests: write` to update PR metadata.
27
28 Consider:
29
30 - Keep as-is with the documented zizmor ignore.
31 - Replacing with `pull_request` would be safer, but may not be able to label or
32 comment on forked PRs reliably.
33
34 ### `.github/workflows/pr-triage.yml`
35
36 Current reason to keep `pull_request_target`:
37
38 - The author-assignment job writes PR metadata.
39 - It does not check out or execute PR code.
40
41 Consider:
42
43 - Split this workflow:
44 - Keep author assignment on `pull_request_target`.
45 - Move semantic PR title validation to a separate `pull_request` workflow with
46 read-only permissions.
47 - This would reduce the amount of logic running under `pull_request_target`.
48
49 ### `.github/workflows/pull-request-rn-labeler.yml`
50
51 Current reason to keep `pull_request_target`:
52
53 - The workflow runs after merge or title edits and writes release-note labels.
54 - It calls the trusted reusable release-note labeler from `aristanetworks/avd`.
55 - The reusable workflow passes PR metadata through environment variables before
56 shell use and converts comma-separated PR scopes to `|` in labels.
57
58 Consider:
59
60 - Keep as-is with the documented zizmor ignore.
61 - Keep using the reusable workflow so ANTA follows the shared release-note
62 labeling pattern.
63 - Review whether the reusable workflow reference should move from `devel` to a
64 released tag once this shared workflow is released; the workflow currently pins
65 the commit from AVD `devel`.
66 - Replacing with `pull_request` is unlikely to preserve label-writing behavior for
67 all forked PR cases.