Skip to content

PFM-ISSUE-33676 - Use the github-actions bot identity in FE upmerge and release flows - #192

Open
vladimir-arsov wants to merge 2 commits into
masterfrom
improvement/PFM-ISSUE-33676-Replace-shared-GitHub-user-account-in-frontend
Open

vladimir-arsov wants to merge 2 commits into
masterfrom
improvement/PFM-ISSUE-33676-Replace-shared-GitHub-user-account-in-frontend

Conversation

@vladimir-arsov

@vladimir-arsov vladimir-arsov commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Resolves PFM-ISSUE-33676

changelog: Frontend-Core: [PFM-ISSUE-33676] The FE release flow and the upmerge check set a github-actions[bot] git identity themselves; GIT_USER and GIT_USER_EMAIL are no longer required [PR github-actions#192]

Summary

The FE reusable workflows in this repo no longer read the shared GitHub user account (GIT_USER,
GIT_USER_EMAIL).

Changes

  • fe-check-upmerge.yml:
    • A new "Configure git identity" step sets github-actions[bot] globally. cplace-cli makes local merge commits
      (--no-push), which need an author.
    • GIT_USER* are no longer passed to the action.
    • The ref: ${{ inputs.GHA_REF }} line is removed. It referred to an input that was never declared, so it always
      resolved to empty.
  • tools/scripts/upmerge/upmerge.ts: the two unquoted git config --global calls built from GIT_USER* are
    removed. A new unit test proves the script no longer configures an identity, and it fails against the old code.
  • fe-release-flow.yml: the git identity step (renamed from "Configure git user" to "Configure git identity", to match
    the upmerge workflow) uses fixed github-actions[bot] values with no secret env. The tag
    is lightweight, so the identity is never recorded anyway.
  • GIT_USER/GIT_USER_EMAIL in both workflows: they are now required: false and unused, with a comment marking
    them for removal by the FE migration/cleanup ticket. Callers that still pass them keep working.
  • Upmerge caller template: it no longer passes GIT_USER*. Its permissions: are unchanged (PFM-ISSUE-35504).
  • README "Required secrets": GIT_USER* are dropped from the list, and it says when a repo can delete
    GIT_USER/GIT_USER_EMAIL and GIT_USER_TOKEN.
  • Specs: research.md (now with an addendum mapping U1–U17 and the 15-repo audit), design.md, plan.md and
    live-test-log.md, all under specs/2026-11-26_PFM-ISSUE-33676_replace-shared-github-user/.

Unchanged: the deprecated fe-tag.yml and workflows/fe-release.yml, the GIT_USER* declarations themselves,
and the consumer repos. All of these belong to the migration/cleanup ticket (U13–U17 in the mapping).

Consumers need no change. Explicit GIT_USER* passes still validate against the optional declarations.

The cplace-fe side (heal push via the sva-actions-upmerge App, storybook identity) is
cplace-fe#3101.

Live validation (clone-cplace-fe, test branch test/PFM-ISSUE-33676-bot-identity)

The clone's GIT_USER_TOKEN, GIT_USER and GIT_USER_EMAIL secrets were deleted before L1–L4, and no clone
branch references them anymore.

ID Run Result
L0a/b/c 46025367521, 46025377463, 46025386669 Pushes to release/26.4 and release/26.3 were no-op releases, and main CI was green, all before the secrets were deleted.
L1 Release 46057064738 RELEASE(26.4.13). "Configure git user" (since renamed to "Configure git identity") ran with fixed values and no secret env. The tag is lightweight and the GitHub release is authored by github-actions[bot]. There was no "Secret … is required" error.
L2 Upmerge 46057315523 Success. "Configure git identity" ran, and the dummy Slack token gave invalid_auth as expected. cplace-cli merged 26.3 → 26.4 (a real merge commit, so the bot identity was used) and then stopped on an add/add conflict in fe-release.yml that already existed in the clone.
L3 PR snapshot 46057137170 One <!-- published-artifacts --> comment, by github-actions[bot].
L4 Main CI 46057190970 Success

Details: specs/2026-11-26_PFM-ISSUE-33676_replace-shared-github-user/live-test-log.md.

Tests

  • npx jest tools/scripts/upmerge passes 4/4, including the new test.
  • npm test has 8 failures in the artifacts suites. master fails the same 8 on Windows (path separators); they are
    unrelated to this change.
  • actionlint is clean on both changed workflows.

Developer Checklist:

  • Updated documentation if needed
  • Created Changelog according
    to Guidelines

🤖 Generated with Claude Code

vladimir-arsov and others added 2 commits November 27, 2026 16:26
…nd release flows

- fe-check-upmerge.yml / fe-release-flow.yml: set a fixed github-actions[bot]
  git identity; GIT_USER / GIT_USER_EMAIL become optional and unused.
- fe-check-upmerge.yml: drop the undeclared inputs.GHA_REF checkout ref.
- upmerge.ts: no longer runs git config from GIT_USER*; new unit test.
- Caller template and README no longer require GIT_USER*.
- Specs under specs/2026-11-26_PFM-ISSUE-33676_replace-shared-github-user/.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- live-test-log.md: clone-cplace-fe runs L0-L4 (release, upmerge, PR
  snapshot comment, main CI without GIT_USER* secrets) and H0-H4 (App-token
  heal through an App-only bypass ruleset, loop-break, cleanup).
- research.md: addendum with the final usage -> replacement mapping
  (U1-U17, owners) and the audit of the 15 FE repos.
- plan.md: progress, deviations and checkpoint approvals.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.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.

1 participant