feat: auto-pin SHA + testable validation scripts#2
Merged
Conversation
- Refactor inline Python from validate.yml into scripts/validate_schema.py and scripts/validate_reachability.py (both callable as CLI tools) - Add tests/ with 16 unit tests covering schema validation and reachability checks (403, 404, auth header injection) - Add .github/workflows/test.yml to run pytest on scripts/tests/ changes - Update CONTRIBUTING.md: document SHA-based versioning (no version field in plugin.json), add auto-pin setup guide with pin-sha.yml template, label/PAT/branch-protection checklist - Update README.md to reference auto-pinning and CONTRIBUTING guide
5dd6bed to
2ca0ea1
Compare
3 tasks
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
validate.ymlintoscripts/validate_schema.pyandscripts/validate_reachability.py(callable as CLI tools)tests/with 16 unit tests covering schema validation and reachability checks (403, 404, auth header injection).github/workflows/test.ymlto run pytest onscripts/+tests/changesCONTRIBUTING.md: document SHA-based versioning (noversionfield inplugin.json), add auto-pin setup guide withpin-sha.ymltemplate, label/PAT/branch-protection checklistREADME.mdto reference auto-pinningRequired manual setup (after merge)
auto-pinin this repomaster: require status checkvalidateTest plan
pytest tests/ -v→ 16 passedvalidate.ymlmanually → both steps pass using scripts