Skip to content

ci(workflows): replace dynamic context flags and configure release governance #2979

Open

Description

@jkim323

Seven handwritten workflows use job-persistent flags written through GITHUB_ENV and later read through env.* expressions. GitHub Actions supports this pattern and actionlint currently passes, but the VS Code GitHub Actions extension cannot reliably infer these dynamic keys and reports avoidable context-access diagnostics.

Separately, extension-provenance-signer.yml references a release-governance environment that is not configured. GitHub would implicitly create the environment without protection rules on first use, weakening the intended release authorization boundary.

This task replaces the targeted handwritten flags with explicit step outputs and establishes the missing hosted release gate while preserving existing workflow behavior.

Scope

  • Migrate targeted state in markdown-lint.yml, table-format.yml, eval-validation.yml, fuzz-tests.yml, pip-audit.yml, python-lint.yml, and pester-tests.yml to explicit step outputs.
  • Extend scripts/tests/Get-ChangedTestFiles.ps1 to publish has-changes through the existing CI output abstraction while retaining TEST_PATHS delivery.
  • Add focused contract coverage for output initialization, skipped detectors, routing fallbacks, and failure aggregation.
  • Create and protect the release-governance repository environment before release activation.

Acceptance Criteria

  • The seven handwritten workflows no longer reference the targeted dynamic env.* keys in workflow expressions.
  • Every executed producer emits exactly one lowercase true or false output for its declared state.
  • Conditional change detectors preserve full-run behavior with an explicit !inputs.changed-files-only || steps.<detector>.outputs.has-changes == 'true' fallback.
  • Fuzz eligibility emits an explicit result for harness-absent, filtered-no-change, and eligible paths.
  • Eval lint summary and terminal gating use the same logical OR across the four named lint-step outputs and preserve zero-, one-, and multiple-failure behavior.
  • Get-ChangedTestFiles.ps1 publishes has-changes through Set-CIOutput and continues to publish semicolon-delimited TEST_PATHS through the job environment.
  • Focused Pester coverage validates skipped, false, and true detector paths plus successful and tolerated-failure output paths; at most one new workflow-contract test file is added.
  • release-governance has at least one administrator-selected required reviewer, prevents self-review, and allows deployments only from tags matching v* and prerelease-v*.
  • npm run lint:yaml, npm run lint:ps, affected Pester tests, and git diff --check pass.
  • Generated .lock.yml files remain unchanged by direct edits.

Out of Scope

  • The separately owned app-id deprecation remediation.
  • Direct edits to gh-aw generated lock files or a broad gh-aw upgrade.
  • Moving RELEASE_APP_PRIVATE_KEY; other release workflows currently consume the repository-scoped secret.
  • Dispatching release or signer workflows as part of generic validation.

Related

Activity

  1. added
    priority-2
    maintenance
    github-actions
    testing
    infrastructure
    maintainers-only
    on Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

github-actionsinfrastructuremaintainers-onlymaintenancepriority-2testing

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions