Skip to content
Closed
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
1 change: 1 addition & 0 deletions .github/workflows/pineforge-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ jobs:
(github.event.workflow_run.name == 'CI' && github.event.workflow_run.event == 'pull_request') ||
(github.event.workflow_run.name == 'Release' && github.event.workflow_run.head_branch == 'main'))
runs-on: ubuntu-24.04
environment: release-bot
steps:
- uses: actions/create-github-app-token@v2
id: app
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ permissions:
jobs:
report:
runs-on: ubuntu-24.04
environment: release-bot
steps:
- uses: actions/checkout@v7
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ jobs:
needs: authz
if: github.event_name == 'workflow_dispatch' && inputs.ci_run == '' && !inputs.claim_placeholder
runs-on: ubuntu-24.04
environment: release
concurrency:
group: data-release-adapter
cancel-in-progress: false
Expand Down Expand Up @@ -258,6 +259,7 @@ jobs:
((github.event_name == 'workflow_run' && github.event.workflow_run.event == 'push') ||
(github.event_name == 'workflow_dispatch' && inputs.ci_run != '')) && !inputs.claim_placeholder
runs-on: ubuntu-24.04
environment: release-bot
outputs:
eligible: ${{ steps.release.outputs.eligible }}
has_target: ${{ steps.release.outputs.has_target }}
Expand Down
11 changes: 11 additions & 0 deletions docs/releasing.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,17 @@ Create or expose these names to this repository; never put their values in code:
| `RELEASE_APP_PRIVATE_KEY` | Repository secret (or selected org secret) | Mint short-lived, single-target installation tokens |
| `RELEASE_ALERT_OWNER` | Repository variable | Assignable GitHub login for incident/failure and verified-publication notices |

App-token minting jobs use main-only environments: `release` requires the owner
as reviewer for human-dispatched jobs (`release.yml`'s `manual-pr`), while
`release-bot` has no reviewer for automatic or mixed-trigger jobs (`reconcile`,
`prepare`, and the called workflow's `report`). The workflow preflight requires
a literal, non-empty environment on every detected minting job. Keep this change
in draft until the owner confirms both environments and their
`RELEASE_APP_PRIVATE_KEY` copies are ready. Rollback reverts this change,
removing the affected `environment:` lines and their preflight pin together;
repository-level secret copies remain until the owner deletes them after dry
runs, and workflows keep the same `secrets` references.

Install the App on this consumer and the hub. Its consumer permissions need
Contents write, Pull requests write and Actions write; the reconciliation token
is restricted to this repository. Publisher preparation requests only read
Expand Down
Loading
Loading