Let the workflow contract test accept action version bumps

main

Commit

Thomas Dohmke1w ago

The contract compared each step's uses: string exactly, so a Dependabot bump of setup-python failed the test until the table was edited by hand (#386). The contract is about which action a step runs and how firmly it is pinned, not which release.

Action references are now compared by name and pin strength. checkout, setup-go and setup-python accept any full release tag or a commit SHA; upload-artifact, download-artifact and cache must stay on a commit SHA. Eight new mutations prove that a swapped action, a loosened pin and a moving ref are still reported, and seven accepted bumps prove a version change alone is not.

Co-Authored-By: Claude Fable 5.2 noreply@anthropic.com Claude-Session: https://claude.ai/code/session_01S9t5S6xv3uarDquPcGD4tu Entire-Checkpoint: 77444934469e