mirror of
https://github.com/Cacti/cacti.git
synced 2026-11-30 12:16:40 +09:00
ci: allow the remediation publisher's credentialed checkout (#8668)
* ci: allow the remediation publisher's credentialed checkout released-dependency-audit.yml's publish-remediation job checks out 1.2.x with persist-credentials: true because released_dependency_remediation.py publishes with `git push origin`. The workflow policy treats every checkout outside CHECKOUT_WRITE_WORKFLOWS as read-only, so "Workflow policy checks" fails on develop and on every pull request. List the workflow with the other workflows that push. Its read-only checkouts already set persist-credentials: false. Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> * test(ci): cover the workflow policy's credentialed checkout list Loads check-workflow-policy.py and checks that the remediation publisher's checkout is accepted while it is listed and reported once it is not, so the changed-Python coverage gate has evidence for the script. Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> --------- Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
This commit is contained in:
1 parent
e53ea25d69
commit
cc7ceb5f3e
2 files changed
+55
No files matched your search
@@ -17,6 +17,7 @@ DEFAULT_WORKFLOW_GLOB = ".github/workflows/*"
|
||||
DEFAULT_ACTION_GLOB = ".github/actions/**/action.y*ml"
|
||||
ALLOWED_RUNNERS = {"ubuntu-24.04", "ubuntu-slim"}
|
||||
CHECKOUT_WRITE_WORKFLOWS = {
|
||||
".github/workflows/released-dependency-audit.yml",
|
||||
".github/workflows/security-baseline-refresh.yml",
|
||||
".github/workflows/update-contributors.yml",
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user