Skip to content

Commit ba8e0cd

Browse files
zacdav-dbZac Davies
andauthored
[codex] Harden Actions runtime boundaries (#213)
* Harden Actions runtime boundaries * Document protected runner requirements --------- Co-authored-by: Zac Davies <zachary.davies+data@databricks.com>
1 parent 91b7479 commit ba8e0cd

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/pkgdown.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ jobs:
1717
environment: runtime
1818
permissions:
1919
contents: write # Deploy pkgdown output to the gh-pages branch.
20+
# This protected runner is acceptable only for privileged triggers above
21+
# (push to protected branches, release publication, or manual dispatch).
22+
# Do not add pull_request, issue_comment, or other untrusted triggers here.
2023
runs-on:
2124
group: databrickslabs-protected-runner-group
2225
labels: linux-ubuntu-latest

SECURITY.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,20 @@ Before enabling or changing internal runners, verify the environment still has
2828
required reviewers configured in GitHub repository settings under
2929
`Settings > Environments > runtime`.
3030

31+
## Protected Runner Workflows
32+
33+
The `pkgdown` workflow may use `databrickslabs-protected-runner-group` with
34+
`contents: write` because it is limited to privileged triggers: protected-branch
35+
`push`, release publication, and manual dispatch. The runner group configuration
36+
must remain locked down:
37+
38+
- Only trusted repositories may target the runner group.
39+
- Workflows using the runner group must not add `pull_request`, `issue_comment`,
40+
`pull_request_target`, `workflow_run`, or other externally influenced triggers.
41+
- Jobs using the runner group must continue to declare the `runtime` environment
42+
when they execute repository code with runtime secrets or write tokens.
43+
- Changes to protected-runner workflows require CODEOWNERS review.
44+
3145
## Pull Request Comment Commands
3246

3347
The `/document` and `/style` issue-comment commands fetch the pull request branch

0 commit comments

Comments
 (0)