From 26a7445f5d3431ba48aa0842ba617bf62f8d7a97 Mon Sep 17 00:00:00 2001 From: Tyler Burdsall Date: Wed, 12 Aug 2026 16:27:44 -0700 Subject: [PATCH] chore: retire the machine-user release token --- .github/workflows/on-push-to-main-branch.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/on-push-to-main-branch.yml b/.github/workflows/on-push-to-main-branch.yml index 45f44db0..373278ba 100644 --- a/.github/workflows/on-push-to-main-branch.yml +++ b/.github/workflows/on-push-to-main-branch.yml @@ -9,10 +9,17 @@ jobs: runs-on: ubuntu-24.04 steps: + - name: Generate release bot token + id: app-token + uses: actions/create-github-app-token@v3 + with: + app-id: ${{ secrets.MOMENTO_RELEASE_APP_ID }} + private-key: ${{ secrets.MOMENTO_RELEASE_APP_PRIVATE_KEY }} + - name: Setup repo uses: actions/checkout@v4 with: - token: ${{ secrets.MOMENTO_MACHINE_USER_GITHUB_TOKEN }} + token: ${{ steps.app-token.outputs.token }} - name: Generate README uses: momentohq/standards-and-practices/github-actions/generate-and-commit-oss-readme@gh-actions-v2 @@ -33,13 +40,20 @@ jobs: tag_name: ${{ steps.release.outputs.tag_name }} steps: + - name: Generate release bot token + id: app-token + uses: actions/create-github-app-token@v3 + with: + app-id: ${{ secrets.MOMENTO_RELEASE_APP_ID }} + private-key: ${{ secrets.MOMENTO_RELEASE_APP_PRIVATE_KEY }} + - uses: actions/checkout@v4 - uses: googleapis/release-please-action@v4 name: Release Please id: release with: - token: ${{ secrets.MOMENTO_MACHINE_USER_GITHUB_TOKEN }} + token: ${{ steps.app-token.outputs.token }} publish: needs: [release-please]