Commit 9b48a4f
committed
fix: suppress Codacy semgrep workflow_run checkout warning
Add a yaml.github-actions.security.workflow-run-target-code-checkout
nosemgrep marker on the actions/checkout step in publish-pypi.yml.
The rule fires on any workflow_run+checkout combination, but the
job's if-clause already gates on workflow_run.head_branch == 'main'
and workflow_run.event != 'pull_request', so a fork PR head can
never reach this checkout. The check is supplemented by pinning
the ref to workflow_run.head_sha.1 parent 831da77 commit 9b48a4f
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
26 | 31 | | |
27 | 32 | | |
28 | 33 | | |
| |||
0 commit comments