Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflow-templates/fe/fe-check-upmerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,3 @@ jobs:
uses: collaborationFactory/github-actions/.github/workflows/fe-check-upmerge.yml@master
secrets:
SLACK_TOKEN_UPMERGE: ${{ secrets.SLACK_TOKEN_UPMERGE }}
GIT_USER_EMAIL: ${{ secrets.GIT_USER_EMAIL }}
GIT_USER: ${{ secrets.GIT_USER }}
17 changes: 12 additions & 5 deletions .github/workflows/fe-check-upmerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ on:
secrets:
SLACK_TOKEN_UPMERGE:
required: true
# Unused since PFM-ISSUE-33676 (the git identity is the github-actions bot). Kept optional so
# callers that still pass them keep working; removed by the FE migration/cleanup ticket.
GIT_USER_EMAIL:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please have different parts of FE2.0 docs in mind. Example

required: true
required: false
GIT_USER:
required: true
required: false

jobs:
check-upmerge:
Expand All @@ -17,9 +19,16 @@ jobs:
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
ref: ${{ inputs.GHA_REF }}
fetch-depth: 0

# cplace-cli makes local merge commits (--no-push), which need an author. --global because the
# CLI may merge in a working tree outside the checkout.
# 41898282 is the github-actions[bot] user id (gh api users/github-actions%5Bbot%5D)
- name: Configure git identity
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'

- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 24.22.1
Expand All @@ -35,5 +44,3 @@ jobs:
uses: collaborationFactory/github-actions/.github/actions/upmerge@master
env:
SLACK_TOKEN_UPMERGE: ${{ secrets.SLACK_TOKEN_UPMERGE }}
GIT_USER_EMAIL: ${{ secrets.GIT_USER_EMAIL }}
GIT_USER: ${{ secrets.GIT_USER }}
16 changes: 8 additions & 8 deletions .github/workflows/fe-release-flow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ on:
required: true
DOT_NPMRC:
required: true
# Unused since PFM-ISSUE-33676 (the git identity is the github-actions bot). Kept optional so
# callers that still pass them keep working; removed by the FE migration/cleanup ticket.
GIT_USER:
required: true
required: false
GIT_USER_EMAIL:
required: true
required: false
PERCY_TOKEN:
required: false

Expand Down Expand Up @@ -140,13 +142,11 @@ jobs:
if: steps.npm-cache.outputs.cache-hit != 'true'
run: npm ci

- name: Configure git user
env:
GIT_USER: ${{ secrets.GIT_USER }}
GIT_USER_EMAIL: ${{ secrets.GIT_USER_EMAIL }}
# 41898282 is the github-actions[bot] user id (gh api users/github-actions%5Bbot%5D)
- name: Configure git identity
run: |
git config user.name "$GIT_USER"
git config user.email "$GIT_USER_EMAIL"
git config user.name 'github-actions[bot]'
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'

- name: Publish to Jfrog NPM Registry and Tag
id: release
Expand Down
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,18 @@ run ends green with the warning "FORCE is ignored".
### Required secrets

Passed with `secrets: inherit`: `JFROG_TOKEN`, `JFROG_URL`, `JFROG_USER`, `DOT_NPMRC`,
`GIT_USER`, `GIT_USER_EMAIL`, and optionally `PERCY_TOKEN`. The caller needs
`permissions: contents: write`; the flow grants it only to the `release` and `github-release` jobs.
and optionally `PERCY_TOKEN`. The caller needs `permissions: contents: write`; the flow grants it
only to the `release` and `github-release` jobs. The flow sets the `github-actions[bot]` git
identity itself; `GIT_USER` and `GIT_USER_EMAIL` are still accepted but unused. The upmerge check
(`fe-check-upmerge.yml`) needs only `SLACK_TOKEN_UPMERGE`.

The tag is pushed with `GITHUB_TOKEN`; the flow does not use `GIT_USER_TOKEN`. The deprecated
`fe-tag.yml` and `workflows/fe-release.yml` still need it: remove it from a repo only once none of
its branches calls them.

A repo can delete `GIT_USER` and `GIT_USER_EMAIL` once no caller passes them explicitly, and
`GIT_USER_TOKEN` once none of its branches calls `fe-tag.yml` or `workflows/fe-release.yml`.

#### JFrog and npm secrets (all FE workflows)

| Secret | Content | Used for |
Expand Down
Loading