You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The Interface Audit Cannot See a Required Token Inside a Folded If #1901
Found adopting the hub workflow tasks in ptr727/NxWitness, audit run 2026-09-26T15:37:07Z | hub 45669468 | branch override develop.
The defect
check_interface searches each requireTokensInJob token in _code_view(job) (spec/audit.py line 1749), which drops every block-scalar body so that prose in a name: | cannot fake a token. A folded if: >- is a block scalar too, so its body is dropped. publish-release.yml's contract requires needs.validate.result == 'success' in the publish job, and that token lives in the job's if:. The fleet's own Workflow YAML convention requires if: >- for a multi-line condition, so a caller that follows the convention is reported as missing the token it carries.
_code_view of that job keeps if: >- and drops both condition lines, so the audit reports job 'publish' missing required 'needs.validate.result == 'success''. Written on one line as if: ${{ ... }}, the same condition passes.
Who it hits
NxWitness: its publish condition is multi-line.
PhotoCleaner, the adopted pilot: its mainpublish-release.yml shows the same false positive, since its publish job also uses if: >- and _code_view hides the token there too.
Suggested fix
Keep the body of a block scalar whose key is if:, since an if: value is always an expression rather than prose. Alternatively, read the parsed YAML's if string for the token checks.
Activity
Keep a Folded if: Condition Visible to the Interface Audit's Token Ch…