DESCRIPTION:
zerocracy.yml declares top-level contents: write AND actions: write. The actions: write scope allows the workflow to create/update/delete GitHub Actions secrets, workflows, and caches - never actually required by any step in this workflow. Violates principle of least privilege.
REPRODUCTION:
- Inspect each step; none uses Actions API with write.
IMPACT:
Excessive privilege; combined with PAT access to all org repos = ability to alter workflow files of any org repo.
RELATED FILES:
.github/workflows/zerocracy.yml
DESCRIPTION:
zerocracy.yml declares top-level contents: write AND actions: write. The actions: write scope allows the workflow to create/update/delete GitHub Actions secrets, workflows, and caches - never actually required by any step in this workflow. Violates principle of least privilege.
REPRODUCTION:
IMPACT:
Excessive privilege; combined with PAT access to all org repos = ability to alter workflow files of any org repo.
RELATED FILES:
.github/workflows/zerocracy.yml