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]