Skip to content

feat: Kopexa Operator token and shared release-please action - #14

Merged
juliankoehn merged 2 commits into
mainfrom
feat/kopexa-operator-app-token
Nov 18, 2026
Merged

juliankoehn merged 2 commits into
mainfrom
feat/kopexa-operator-app-token

Conversation

@juliankoehn

@juliankoehn juliankoehn commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Summary

  • New composite action github/app-token: mints a one-hour installation token of the Kopexa Operator GitHub App (kopexaoperator[bot]), scoped to the requested repositories and permissions, and returns the bot's git identity.
  • nextjs-delivery.yml: Release Please uses a Kopexa Operator token (Contents, Pull requests, Issues write on the calling repo). Release PRs opened with it trigger the required PR checks, unlike GITHUB_TOKEN.
  • nextjs-image.yml: the envs dispatch uses a Kopexa Operator token limited to Actions write on kopexa-grc/envs.
  • Backwards compatible: without KOPEXA_OPERATOR_PRIVATE_KEY both workflows keep using RELEASE_PLEASE_TOKEN / GITOPS_TOKEN. Those are now marked deprecated.
  • New composite action github/release-please: drop-in for the googleapis/release-please-action step, with a Kopexa Operator token and a GITHUB_TOKEN fallback. All outputs pass through (per-path monorepo outputs via outputs-json), so steps after it in the same job keep working.
  • This repo's own release-please.yml now uses it, which replaces the manual workflow-lint.yml dispatch for release PRs. The release PR after this merge is the first live test.
  • Docs updated (README.md, docs/nextjs.md, workflow docs, action README).

Configuration (already in place)

  • Org variable KOPEXA_OPERATOR_CLIENT_ID, visibility all
  • Org secret KOPEXA_OPERATOR_PRIVATE_KEY, visibility all
  • App installed on all repositories with Actions, Contents, Issues, Pull requests write and Metadata read

Callers opt in by passing KOPEXA_OPERATOR_PRIVATE_KEY (explicitly or with secrets: inherit) and pinning the new release.

Test plan

  • actionlint v1.7.12 passes locally
  • Release PR of this repo after merge is opened by kopexaoperator[bot] and triggers actionlint by itself
  • Pilot in hello: release PR triggers checks by itself, envs dispatch succeeds
  • Roll out to the remaining callers, then remove the PATs

Add the github/app-token composite action, which mints a short-lived
installation token of the Kopexa Operator GitHub App.

nextjs-delivery uses it for Release Please, so release PRs trigger
required checks. nextjs-image uses it for the envs dispatch, scoped to
Actions write on kopexa-grc/envs. Both fall back to RELEASE_PLEASE_TOKEN
and GITOPS_TOKEN while callers do not pass KOPEXA_OPERATOR_PRIVATE_KEY.
Drop-in replacement for the googleapis/release-please-action step. It mints
a Kopexa Operator token when client-id and private-key are given and falls
back to GITHUB_TOKEN otherwise. All upstream outputs are passed through,
per-path monorepo outputs via outputs-json.

This repository's own release workflow uses it, which replaces the manual
workflow-lint dispatch for release PRs.
@juliankoehn juliankoehn changed the title feat: mint Kopexa Operator tokens instead of personal access tokens feat: Kopexa Operator token and shared release-please action Nov 18, 2026
@juliankoehn
juliankoehn merged commit 81c3f35 into main Nov 18, 2026
1 check passed
@juliankoehn
juliankoehn deleted the feat/kopexa-operator-app-token branch November 18, 2026 09:53
juliankoehn pushed a commit that referenced this pull request Nov 18, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.0.6](v0.0.5...v0.0.6)
(2026-11-18)


### Features

* Kopexa Operator token and shared release-please action
([#14](#14))
([81c3f35](81c3f35))


### Bug Fixes

* complete image smoke checks before deployment dispatch
([#12](#12))
([2a01110](2a01110))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: kopexaoperator[bot] <358221093+kopexaoperator[bot]@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.

1 participant