Skip to content

Commit 8b74e38

Browse files
committed
ci: protect issue acceptance checks alongside maintainer approval
Merge the current #3176 implementation so enforcement ownership builds on its CODEOWNERS layout. Protect the issue acceptance helper and tests, and scope the Zizmor suppression to the trusted trigger. Signed-off-by: Evan Lezar <elezar@nvidia.com>
1 parent a3b4553 commit 8b74e38

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

‎.github/CODEOWNERS‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
## Merge enforcement — these paths decide who can merge, so they notify the full
88
# list of maintainers to raise scrutiny on changes here.
9-
#
9+
#
1010
# PR checks run local to the branch, so unless the check specifically avoids
1111
# using branch-local files, a PR could change its own gates and appear to pass
1212
# them. Covering the required checks here closes that gap.
@@ -31,5 +31,9 @@
3131
/tasks/scripts/check_maintainer_approval_test.py @NVIDIA/openshell-codeowners @mrunalp @sjenning @derekwaynecarr
3232
/tasks/scripts/alert_maintainer_change_test.py @NVIDIA/openshell-codeowners @mrunalp @sjenning @derekwaynecarr
3333

34+
# PR issue acceptance checks
35+
/tasks/scripts/check_issue_acceptance.cjs @NVIDIA/openshell-codeowners @mrunalp @sjenning @derekwaynecarr
36+
/tasks/scripts/check_issue_acceptance.test.cjs @NVIDIA/openshell-codeowners @mrunalp @sjenning @derekwaynecarr
37+
3438
# Auditable SBOM check
3539
/tasks/scripts/verify-image-sbom.sh @NVIDIA/openshell-codeowners @mrunalp @sjenning @derekwaynecarr

‎.github/workflows/pr-issue-acceptance.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ jobs:
2222
if: github.repository_owner == 'NVIDIA'
2323
runs-on: ubuntu-latest
2424
steps:
25-
# Load trusted base code only; never check out or execute the PR head.
25+
# pull_request_target supplies the trusted default-branch SHA. Load
26+
# only that helper; PR metadata is data, never executable code.
2627
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2728
with:
2829
ref: ${{ github.sha }}

‎.github/zizmor.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ rules:
99
- dco.yml:3
1010
- e2e-label-help.yml:13
1111
- maintainers-change-alert.yml:6
12+
- pr-issue-acceptance.yml:6
1213
- release-canary.yml:3
1314
- required-ci-gates.yml:3
1415
- vouch-check.yml:3

0 commit comments

Comments
 (0)