Skip to content

Phase 6A: remove retained PAT shadow (all-citus)#1194

Open
ihalatci wants to merge 1 commit into
all-citusfrom
migrate/all-citus-drop-pat-shadow
Open

Phase 6A: remove retained PAT shadow (all-citus)#1194
ihalatci wants to merge 1 commit into
all-citusfrom
migrate/all-citus-drop-pat-shadow

Conversation

@ihalatci

@ihalatci ihalatci commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Phase 6A: remove retained PAT shadow (all-citus)

all-citus is already fully migrated to the GitHub App token (PR #1189, merged). Every token-consuming job in these workflows already mints its own token via actions/create-github-app-token@v3 and exports GH_TOKEN/GITHUB_TOKEN to $GITHUB_ENV. The only remaining reference to the org PAT was the retained top-level env: shadow lines, kept for rollback. This PR removes them — proving the branch runs on the App token alone (Phase 6B readiness).

Change: pure 4-line delete (0 additions)

  • build-package.yml — delete top-level GH_TOKEN: ${{ secrets.GH_TOKEN }} and GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} (2 lines).
  • build-citus-community-nightlies.yml — delete top-level GH_TOKEN: ${{ secrets.GH_TOKEN }} (1 line).
  • update_package_properties.yml — delete top-level GH_TOKEN: ${{ secrets.GH_TOKEN }} (1 line).

No other lines touched: no changes to steps.app-token, $GITHUB_ENV exports, --gh_token, pins, matrices, or runners. After this delete, secrets.GH_TOKEN no longer appears anywhere in these files, and no env: block was emptied (each retains its other keys such as MAIN_BRANCH / PRJ_NAME).

Validation — both push-triggered workflows GREEN on head 52c3a1f

  • Build Package (build-package.yml): run 28526998727 — ✅ success
  • Build and publish citus community nightly packages (build-citus-community-nightlies.yml): run 28526998867 — ✅ success

update_package_properties.yml is workflow_dispatch-only, so it does not auto-fire on push and was intentionally NOT dispatched (it has real side effects — a package-properties bump PR). Structural parity is accepted against the already-green all-citus dispatch run 28507931145.

⚠ MERGE HELD

Opening for review only — do not merge / no auto-merge until the user gives explicit merge approval.

Co-authored-by: Copilot App 223556219+Copilot@users.noreply.github.com

Every token-consuming job on all-citus already mints its own GitHub App
token (actions/create-github-app-token@v3) and exports GH_TOKEN/GITHUB_TOKEN
to $GITHUB_ENV, so the retained top-level env: PAT shadow lines
(GH_TOKEN/GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}) are unused. Remove them
from build-package.yml (both), build-citus-community-nightlies.yml, and
update_package_properties.yml. No job references secrets.GH_TOKEN anymore.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants