-
Notifications
You must be signed in to change notification settings - Fork 1
fix(workflows): complete #3016 interpolation triage follow-up #3023
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
stranske
merged 17 commits into
main
from
cursor/issue-3016-interpolation-triage-followup
Aug 10, 2026
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
e526b6f
fix(workflows): complete #3016 interpolation triage follow-up
codex-automation f6e4c31
chore(codex-autofix): apply updates (PR #3023)
github-actions[bot] 0284784
chore(codex-keepalive): apply updates (PR #3023)
github-actions[bot] 56e1435
chore(codex-keepalive): apply updates (PR #3023)
github-actions[bot] 7e6599b
chore(codex-keepalive): apply updates (PR #3023)
github-actions[bot] cd7dd47
chore(codex-autofix): apply updates (PR #3023)
github-actions[bot] e57f713
chore(autofix): formatting/lint
github-actions[bot] a415bc7
chore(codex-autofix): apply updates (PR #3023)
github-actions[bot] 1ad8fa5
chore(codex-autofix): apply updates (PR #3023)
github-actions[bot] 9806419
chore(codex-autofix): apply updates (PR #3023)
github-actions[bot] cc6575f
fix(workflows): harden interpolation triage guard
codex-automation 3419156
chore(codex-autofix): apply updates (PR #3023)
github-actions[bot] 754d8d7
chore(codex-keepalive): apply updates (PR #3023)
github-actions[bot] e4a9ad3
chore(autofix): formatting/lint
github-actions[bot] 474688e
fix(workflows): align maint-82 contract test with env-based sync hash
codex-automation 4f2da0b
chore(autofix): formatting/lint
github-actions[bot] a725b5d
docs(workflows): reconcile interpolation allowlist count
codex-automation File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| # Workflow script interpolation triage (#3016) | ||
|
|
||
| Follow-up to merged PR #3020. This documents the repository-wide review of | ||
| `${{ inputs.* }}` and `${{ github.event.* }}` expressions that appear inside | ||
| `run:` or `with.script:` block scalars. | ||
|
|
||
| ## Summary | ||
|
|
||
| | Category | Count | Action | | ||
| | --- | ---: | --- | | ||
| | Free-text inputs moved to `env:` in #3020 | 3 fields | `commit_message`, `codex_args`, `repos` | | ||
| | Additional free-text fixes in this PR | 4 fields | `target_repo`, `commit_prefix`, `head_repository`, campaign script outputs | | ||
| | Reviewed constrained interpolations | 103 | Explicit allowlist in `test_no_untrusted_interpolation.py` | | ||
|
|
||
| ## Free-text inputs (must use `env:` indirection) | ||
|
|
||
| These workflow-dispatch or runner inputs are free-form text and must never | ||
| appear directly inside a `run:`/`script:` scalar: | ||
|
|
||
| - `inputs.commit_message` — fixed in #3020 (`maint-70`) | ||
| - `inputs.codex_args` — fixed in #3020 (`reusable-codex-run`) | ||
| - `inputs.repos` — fixed in #3020 (maint/health sync workflows) | ||
| - `inputs.target_repo` — fixed here (`maint-72`) | ||
| - `inputs.commit_prefix` — fixed here (`reusable-18-autofix`) | ||
| - `inputs.head_repository` — fixed here (`agents-keepalive-branch-sync`) | ||
|
|
||
| The regression guard bans these expressions in script bodies and fails if they | ||
| reappear. | ||
|
|
||
| ## Constrained-value allowlist | ||
|
|
||
| The remaining 103 `(workflow, step, expression)` tuples are provably | ||
| constrained: | ||
|
|
||
| - **Booleans / dry-run flags** — `inputs.dry_run`, `inputs.create_issue`, etc. | ||
| - **Numeric identifiers** — `inputs.pr_number`, `inputs.issue_number`, `github.event.issue.number` | ||
| - **Repo-controlled refs** — `github.event.pull_request.base.ref`, `github.event.repository.default_branch` | ||
| - **Enumerated modes** — `inputs.mode`, `inputs.agent_key`, `inputs.provider`, `inputs.package-manager`, `inputs.test-runner` | ||
| - **Step output passthrough** — `steps.registered.outputs.repos` consumed via step `env:` in `maint-82` | ||
|
|
||
| Each tuple is recorded in `REVIEWED_SCRIPT_INTERPOLATIONS` inside | ||
| `tests/workflows/test_no_untrusted_interpolation.py`. Adding a new | ||
| `inputs.*`/`github.event.*` script interpolation requires updating that set and | ||
| this document. | ||
|
|
||
| ## Test gate | ||
|
|
||
| `tests/workflows/test_no_untrusted_interpolation.py::test_no_untrusted_expressions_in_script_bodies` | ||
| parses every workflow file, walks `run:`/`script:` scalars, and asserts: | ||
|
|
||
| 1. Banned free-text expressions do not appear. | ||
| 2. Every other `inputs.*`/`github.event.*` hit is present in the reviewed allowlist. | ||
|
|
||
| Deliberate-break check (from issue acceptance criteria): re-introduce | ||
| `git commit -m "${{ inputs.commit_message }}"` in `maint-70` and confirm the | ||
| named test fails. |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.