diff --git a/.github/workflows/deploy-site.yml b/.github/workflows/deploy-site.yml index 40099d1..6c45652 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 c56fe57..a27e737 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 acd3825..207d6e9 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 db19eb6..4ed4ed9 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: @@ -38,8 +38,10 @@ 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: 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 bf327cd..ef8cd43 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__/