From da5d7d37e1b6500ae333226a62fc0cf0c3b29aeb Mon Sep 17 00:00:00 2001 From: Pieter Viljoen Date: Tue, 10 Nov 2026 16:53:02 -0800 Subject: [PATCH 1/3] Bind the Required Check Name to Pull Request Runs WORKFLOW.md D1.5 reserves the ruleset-bound name for a pull_request run, so a workflow_dispatch on a pull request's head cannot post the required check without that pull request's gates. Also ignores the .vscode/settings.json the Python extension writes, per GOVERNANCE.md Editor and Tasks. --- .github/workflows/test-pull-request.yml | 2 +- .gitignore | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-pull-request.yml b/.github/workflows/test-pull-request.yml index db19eb64..135fa795 100644 --- a/.github/workflows/test-pull-request.yml +++ b/.github/workflows/test-pull-request.yml @@ -39,7 +39,7 @@ jobs: # Its name is the ruleset-bound required status-check context. # Rename it and the ruleset context together, never independently. check-workflow-status: - name: Check pull request workflow status job + name: ${{ github.event_name == 'pull_request' && 'Check pull request workflow status job' || 'Check workflow status job' }} runs-on: ubuntu-latest needs: [ validate ] if: always() diff --git a/.gitignore b/.gitignore index bf327cd5..ef8cd438 100644 --- a/.gitignore +++ b/.gitignore @@ -18,6 +18,7 @@ hugo_stats.json .DS_Store *.user .claude +.vscode/settings.json # Python byproducts, coverage reports included, from the gates under `checks/`, the tools under `scripts/`, and the provenance tools under `capture/`. __pycache__/ From 28102ffc239e2ee6d9161df65cebabdef100e95e Mon Sep 17 00:00:00 2001 From: Pieter Viljoen Date: Tue, 10 Nov 2026 20:44:00 -0800 Subject: [PATCH 2/3] Bump the Hub Task Pins to 2.0.1388 The prose gate in 2.0.1366 crashes at import on the markdown-it-py release it leaves unpinned, so every pull request's lint job fails before reading a file. 2.0.1388 builds that pattern itself and pins the package. No pinned task changes an input between the two releases. --- .github/workflows/deploy-site.yml | 4 ++-- .github/workflows/merge-bot-pull-request.yml | 2 +- .github/workflows/publish-release.yml | 6 +++--- .github/workflows/test-pull-request.yml | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deploy-site.yml b/.github/workflows/deploy-site.yml index 40099d1e..6c456529 100644 --- a/.github/workflows/deploy-site.yml +++ b/.github/workflows/deploy-site.yml @@ -40,7 +40,7 @@ jobs: validate: name: Validate sources job needs: [ assert-ref ] - uses: ptr727/ProjectTemplate/.github/workflows/validate-task.yml@245353323c7ee5617edfe82331d0e83b266bebb2 # 2.0.1366 + uses: ptr727/ProjectTemplate/.github/workflows/validate-task.yml@1397e30a2465a0a9b6ded24db9e4fc11a8b83f42 # 2.0.1388 permissions: contents: read with: @@ -58,7 +58,7 @@ jobs: deploy: name: Deploy site job needs: [ validate ] - uses: ptr727/ProjectTemplate/.github/workflows/deploy-site-task.yml@245353323c7ee5617edfe82331d0e83b266bebb2 # 2.0.1366 + uses: ptr727/ProjectTemplate/.github/workflows/deploy-site-task.yml@1397e30a2465a0a9b6ded24db9e4fc11a8b83f42 # 2.0.1388 with: environment: ${{ inputs.environment }} permissions: diff --git a/.github/workflows/merge-bot-pull-request.yml b/.github/workflows/merge-bot-pull-request.yml index c56fe572..a27e7376 100644 --- a/.github/workflows/merge-bot-pull-request.yml +++ b/.github/workflows/merge-bot-pull-request.yml @@ -18,7 +18,7 @@ jobs: merge-bot: name: Merge bot pull request job - uses: ptr727/ProjectTemplate/.github/workflows/merge-bot-task.yml@245353323c7ee5617edfe82331d0e83b266bebb2 # 2.0.1366 + uses: ptr727/ProjectTemplate/.github/workflows/merge-bot-task.yml@1397e30a2465a0a9b6ded24db9e4fc11a8b83f42 # 2.0.1388 secrets: CODEGEN_APP_CLIENT_ID: ${{ secrets.CODEGEN_APP_CLIENT_ID }} CODEGEN_APP_PRIVATE_KEY: ${{ secrets.CODEGEN_APP_PRIVATE_KEY }} diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index acd38257..207d6e95 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -16,7 +16,7 @@ jobs: # Also replaces this repo's own dispatch-ref assertion: the hub task errors identically on a ref other than main/develop. plan: name: Plan release job - uses: ptr727/ProjectTemplate/.github/workflows/publish-plan-task.yml@245353323c7ee5617edfe82331d0e83b266bebb2 # 2.0.1366 + uses: ptr727/ProjectTemplate/.github/workflows/publish-plan-task.yml@1397e30a2465a0a9b6ded24db9e4fc11a8b83f42 # 2.0.1388 with: event_name: ${{ github.event_name }} actor: ${{ github.actor }} @@ -30,7 +30,7 @@ jobs: name: Validate sources job needs: [plan] if: ${{ needs.plan.outputs.publish == 'true' }} - uses: ptr727/ProjectTemplate/.github/workflows/validate-task.yml@245353323c7ee5617edfe82331d0e83b266bebb2 # 2.0.1366 + uses: ptr727/ProjectTemplate/.github/workflows/validate-task.yml@1397e30a2465a0a9b6ded24db9e4fc11a8b83f42 # 2.0.1388 permissions: contents: read with: @@ -54,7 +54,7 @@ jobs: # An if: on a job replaces the implicit success() over its needs. # Without the validate arm a failed gate would publish anyway. if: ${{ needs.plan.outputs.publish == 'true' && needs.validate.result == 'success' }} - uses: ptr727/ProjectTemplate/.github/workflows/build-release-task.yml@245353323c7ee5617edfe82331d0e83b266bebb2 # 2.0.1366 + uses: ptr727/ProjectTemplate/.github/workflows/build-release-task.yml@1397e30a2465a0a9b6ded24db9e4fc11a8b83f42 # 2.0.1388 permissions: contents: write actions: write diff --git a/.github/workflows/test-pull-request.yml b/.github/workflows/test-pull-request.yml index 135fa795..d9848787 100644 --- a/.github/workflows/test-pull-request.yml +++ b/.github/workflows/test-pull-request.yml @@ -19,7 +19,7 @@ jobs: validate: name: Validate sources job - uses: ptr727/ProjectTemplate/.github/workflows/validate-task.yml@245353323c7ee5617edfe82331d0e83b266bebb2 # 2.0.1366 + uses: ptr727/ProjectTemplate/.github/workflows/validate-task.yml@1397e30a2465a0a9b6ded24db9e4fc11a8b83f42 # 2.0.1388 permissions: contents: read with: From fa24b507e9e57ddff508f1fd811363b3f4419c09 Mon Sep 17 00:00:00 2001 From: Pieter Viljoen Date: Tue, 10 Nov 2026 20:46:23 -0800 Subject: [PATCH 3/3] Say Which Run Takes the Required Check Name The aggregator comment named one bound name while the job now carries two, so a reader could not tell which string the ruleset binds. --- .github/workflows/test-pull-request.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test-pull-request.yml b/.github/workflows/test-pull-request.yml index d9848787..4ed4ed95 100644 --- a/.github/workflows/test-pull-request.yml +++ b/.github/workflows/test-pull-request.yml @@ -38,6 +38,8 @@ jobs: # A single always-run aggregator therefore gates the merge. # Its name is the ruleset-bound required status-check context. # Rename it and the ruleset context together, never independently. + # Only a pull_request run takes that name. + # So a dispatch on a pull request's head cannot post the required check without that pull request's gates. check-workflow-status: name: ${{ github.event_name == 'pull_request' && 'Check pull request workflow status job' || 'Check workflow status job' }} runs-on: ubuntu-latest