From 7ef9de2b5af206f9d195a619ff12d63f7b45c028 Mon Sep 17 00:00:00 2001 From: Anthony Volk Date: Tue, 17 Mar 2026 19:40:43 +0100 Subject: [PATCH 1/2] fix: Use GITHUB_TOKEN instead of missing POLICYENGINE_GITHUB PAT Match the pattern used in policyengine-api-v2-alpha. Co-Authored-By: Claude Opus 4.6 --- changelog.d/fix-github-token.fixed.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/fix-github-token.fixed.md diff --git a/changelog.d/fix-github-token.fixed.md b/changelog.d/fix-github-token.fixed.md new file mode 100644 index 00000000..e213902e --- /dev/null +++ b/changelog.d/fix-github-token.fixed.md @@ -0,0 +1 @@ +Use GITHUB_TOKEN instead of missing POLICYENGINE_GITHUB PAT in push workflow From 56506a58ee7956888ea45fe89687c30c3441f94e Mon Sep 17 00:00:00 2001 From: Anthony Volk Date: Tue, 17 Mar 2026 19:44:19 +0100 Subject: [PATCH 2/2] fix: Replace POLICYENGINE_GITHUB with GITHUB_TOKEN in push workflow Co-Authored-By: Claude Opus 4.6 --- .github/workflows/push.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index c96bb4fd..9c6cea0f 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -1,7 +1,8 @@ # Unified workflow for pushes to main. # # Phase 1 (normal push): Lint + Test → Docs + Versioning -# Versioning commits with message "Update package version", triggering Phase 2. +# Versioning commits with message "Update package version". +# The commit pushes to main, re-triggering this workflow for Phase 2. # # Phase 2 (sentinel commit): Lint + Test → Publish to PyPI + GitHub Release @@ -97,7 +98,7 @@ jobs: - name: Checkout repo uses: actions/checkout@v4 with: - token: ${{ secrets.POLICYENGINE_GITHUB }} + token: ${{ secrets.GITHUB_TOKEN }} - name: Setup Python uses: actions/setup-python@v5 with: @@ -118,7 +119,7 @@ jobs: needs: [Lint, Test] if: github.event.head_commit.message == 'Update package version' env: - GH_TOKEN: ${{ secrets.POLICYENGINE_GITHUB }} + GH_TOKEN: ${{ github.token }} steps: - name: Checkout repo uses: actions/checkout@v4