Skip to content

Pin detect step env HEAD_SHA mapping in CI gating structure test #193

Backlog

Description

@jflowers

Finding (from review of PR #185, LOW — test-coverage):

Task 1.1 and design D2 of the ci-skip-build-for-learnings change mandate the PR head SHA reach the detection script through the step's env: block (HEAD_SHA: ${{ github.event.pull_request.head.sha }}, .github/workflows/ci.yml:46-47), never interpolated into run: — event-context template injection is a zizmor finding. assertDetectionLogic pins the $HEAD_SHA comparison but not the env mapping that defines it, so a regression to inline ${{ github.event.pull_request.head.sha }} interpolation inside the run script passes make check. The remaining backstop is zizmor in Standardized CI.

Severity: LOW (test-coverage)
Location: internal/workflowtest/ci_gating_test.go:69 (assertion targets .github/workflows/ci.yml:46-47)
Spec basis: design D2 / tasks.md task 1.1 (env indirection mandate); CLS-FR-006
Review comment: #185 (comment)

Suggested fix: extend the structure test to assert the env: mapping HEAD_SHA: ${{ github.event.pull_request.head.sha }} on the detect step, pinning the mandated indirection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions