Workflow pin: refuses status functions and block-scalar if:, and says which sound conditions it refuses
A Publish if: calling always(), cancelled() or failure() runs after the suite failed, the continue-on-error bypass by another name; a block-scalar if: was compared by its indicator, so '>-' equalled '>-' whatever followed. Both are now refused. The third refusal no longer calls sound conditions narrower: it names the three accepted shapes, and the code comment and docs/semver-policy.md list the sound forms textual matching refuses and why. (Soul findings cut-3-gate.s1.status-function-bypass, block-scalar-if-compared-as-text, pin-refusal-cost-undocumented.) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
1eece6beef
commit
8ed6095a90
2 changed files with 48 additions and 4 deletions
|
|
@ -280,6 +280,19 @@ It is wired into:
|
|||
`org.gamecult.cultmath`;
|
||||
- `scripts/verify-caching-unity-release.ps1`, for `org.gamecult.caching.unity`.
|
||||
|
||||
Each of those runs the check's own tests first, and the tests pin that order.
|
||||
In `publish-packages.yml` the test step must run whenever the job's Publish
|
||||
step does. The pin proves that from the text of the two `if:` conditions, so it
|
||||
accepts only three shapes: no `if:` on the test step, the same `if:` on both,
|
||||
or Publish's `if:` as the test step's followed by ` && ` with no `||`. A
|
||||
block-scalar `if:` (`>-`, `|`) is refused, and so is a Publish `if:` calling
|
||||
`always()`, `cancelled()` or `failure()`, which would publish after the tests
|
||||
failed. Matching text rather than parsing GitHub's expression language also
|
||||
refuses some sound conditions: a parenthesised `S && (c || d)`, conjuncts in
|
||||
another order, and a condition wrapped in `${{ }}` or spaced differently on one
|
||||
step only. Rewrite those into an accepted shape; a wrong pass would publish a
|
||||
package the tests never checked.
|
||||
|
||||
`org.gamecult.cultlib` compiles CultMath from source and ships beside
|
||||
`org.gamecult.cultmath`, so its build refuses unless it declares exactly the
|
||||
CultMath package's version and every `CultMath.dll` it built equals the one
|
||||
|
|
|
|||
Loading…
Reference in a new issue