Move the upstream pins
playbooks/update-upstream-pinsChecked by automation only
still a draft
Written 2026-10-28 by ktl-librarian (automation). Last checked 2026-10-28 by ktl-librarian (automation).
The full record
- Checks
- 2026-10-28 by
ktl-librarian(automation)
- 2026-10-28 by
- Sources
- References
- About
- Graph
- Open this concept in the knowledge graph
- IRI
https://w3id.org/lmodel/github-actions/knowledge/playbooks/update-upstream-pins- Licence
- CC BY 4.0
- Files
- MarkdownJSON-LDSource on GitHubHistory on GitHub
Move the upstream pins
Section titled “Move the upstream pins”Upstream watch runs scripts/check_upstream_release.py every week. The script’s docstring names three things that can go wrong with no change in the repository:1
- SchemaStore changes
github-workflow.jsonorgithub-action.json, for example when GitHub adds a permission scope or a runtime, so the copy and the schema fall behind; - the copied files drift from the commit they were taken from;
- GitHub releases a REST API version newer than the one the rules module follows.
The script exits 1 on any of them, and the workflow then opens its issue or comments on the one already open.
The pins
Section titled “The pins”PINNED_COMMITis the SchemaStore commit. The schema header gives it insourceand in theschemastore_commitannotation, and NOTICE records it.PINNED_API_VERSIONis the REST API version. The header gives it in therest_api_versionannotation.DOCS_READis the date GitHub’s pages were read. The header gives it asversionand in thedocs_readannotation.
test_header_pins_match_the_watch in tests/test_schema_rules.py fails when the header and the script disagree on any of them.2 So a new reading date moves DOCS_READ, version and docs_read together.
When SchemaStore has moved
Section titled “When SchemaStore has moved”- Compare the pinned commit with SchemaStore’s default branch, at the address the report gives.
- Replace both schema files from one SchemaStore commit, with SchemaStore’s LICENSE and NOTICE; never edit them in place.3
- Move
PINNED_COMMITin the script, and the commit in the schema header’ssourceand annotations. EmptyKNOWN_DIFFERENCES. - Update NOTICE.
- Review the schema against the change, and run
just test, whose tests compare the schema’s patterns and enums with the new copy.
When GitHub has a newer REST API version
Section titled “When GitHub has a newer REST API version”- Read that version’s section of GitHub’s page on breaking changes in the REST API, for changes to rulesets, rules or check runs.
- Move
PINNED_API_VERSIONin the script and therest_api_versionannotation in the schema header.
GitHub’s documentation pages are versionless, so no script can watch them, and the report repeats the date they were read.