Repository navigation
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: ptr727/ProjectTemplate
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2.0.472
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: ptr727/ProjectTemplate
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2.0.474
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 3 commits
- 1 file changed
- 5 contributors
Commits on Aug 25, 2026
-
Drop YAML Block-Scalar Bodies from audit.py's Interface Token View (#…
…1003) Fixes #949. ## What happened `_code_view()` (`spec/audit.py`) stripped comment-only lines but did not strip YAML block-scalar (`|`, `>`, and their chomp-indicator variants) body content. Every `requireTokensInJob`/`forbidTokensInJob` check in `check_interface()` is a plain substring search over that view, so a job whose `name:` (or any other string-valued key) is written as a block scalar containing text that happens to match a required or forbidden token, at a matching indent, could satisfy or trip the check without the actual YAML structure the token is meant to verify existing at all. ## Fix The issue's own targeted-mitigation shape: strip a block scalar's body lines (more indented than its own `key:` line, until the first line at or below that indent), keeping only the `key:` line itself, the same bounded heuristic `_code_view()` already uses for comments. Not a general YAML parser, since the issue notes that's likely overkill unless the false-positive/negative surface turns out to be broader than block scalars alone. ## Tests Extended `_selftest()` (what CI runs offline, no network, per OPERATIONS.md "Local Verification") with: - The exact adversarial construction from the issue: the `deploy-site.yml` caller-stub fixture with its real `with:`/`environment:` mapping replaced by a block-scalar `name:` containing that text, still reporting the token missing. - Three direct `_code_view()` fixture cases: body dropped/key kept, a dedented sibling key ending the block scalar body correctly, and a folded scalar with a chomp indicator plus a trailing comment still matching the key-line pattern. ## Verification Ran locally from the repo root: `python3 spec/audit.py --selftest` (SELFTEST PASS, including the new cases), `uvx ruff@latest check`/`format --check`, `uvx mypy@latest`, `python3 scripts/prose_lint.py` (default set), `python3 scripts/repo_gate.py`. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved workflow validation by ignoring YAML block-scalar content while preserving relevant scalar key lines. * Added support for literal and folded scalars, indentation and chomping indicators, anchors, comments, sequence items, and dedented sibling keys. * Prevented tokens within scalar bodies from being incorrectly interpreted as workflow configuration. * **Tests** * Expanded coverage for scalar-body exclusion and supported YAML formatting variations. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: ptr727-codegen[bot] <275599072+ptr727-codegen[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 5 (1M context) <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: OpenAI Codex <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9fe141b - Browse repository at this point
Copy the full SHA 9fe141bView commit details -
Drop a Bare Sequence-Item Block Scalar's Body Too (#1005)
Follow-up to #1003 (issue #949), found by qodo-code-review on the develop -> main promotion PR #1004, which cannot carry the fix directly since its diff is develop against main. ## What happened _code_view()'s block-scalar recognition required a mapping key before the `|`/`>` indicator, so a keyed step (`- run: |`) was recognized but a bare sequence item with no key at all (`- |`, e.g. a matrix string) was not, leaving its body searchable and the requireTokensInJob/forbidTokensInJob mitigation bypassable the same way the original issue describes. ## Fix Recognizes a bare `- |`/`- >` too. Its boundary is the dash's own column rather than a key past it, since there is no key: verified against a real YAML parser (content one column past the dash parses, content at or before the dash's column is a parse error). ## Verification Ran locally from the repo root: `python3 spec/audit.py --selftest` (SELFTEST PASS, including the new case), `uvx ruff@latest check`/`format --check`, `uvx mypy@latest`, `python3 scripts/prose_lint.py` (default set), `python3 scripts/repo_gate.py`. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved code view filtering for bare block scalars in sequence items, including literal and folded formats. * Correctly removes multiline scalar content while preserving indentation behavior for keyed sequence items. * **Tests** * Added coverage for filtering matrix-style block scalars and validating indentation boundaries. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Configuration menu - View commit details
-
Copy full SHA for 2b2025e - Browse repository at this point
Copy the full SHA 2b2025eView commit details -
Promote Develop to Main (#1004)
Promotes #1003 (issue #949) to `main`. ## What - `spec/audit.py`: `_code_view()` drops YAML block-scalar bodies (`key: |`/`key: >`, including a step's `- run: |` and an anchored `key: &label |`) from the interface token-matching view, so a crafted or ordinary block scalar can no longer satisfy or trip a `requireTokensInJob`/`forbidTokensInJob` check as though it were real YAML structure (#949). ## Review PR #1003 review loop: CodeRabbit found one real bug (a sequence-item's block-scalar boundary used the dash's column instead of the key's, dropping a genuine sibling key alongside the body) and qodo found a second real bug (an anchor property before the indicator was not recognized) plus several comment-style findings, all fixed and resolved. One qodo informational finding (task-specific issue-number references in comments) was declined with in-file precedent (spec/audit.py:13, :281, :2764 already cite issue numbers the same way). Copilot's own review account is in the fleet's known repo-wide quota-exhausted state (confirmed live on every request this round), so this proceeded on CodeRabbit's and qodo's coverage per standing precedent.
Configuration menu - View commit details
-
Copy full SHA for 495d69e - Browse repository at this point
Copy the full SHA 495d69eView commit details
Loading
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 2.0.472...2.0.474