Skip to content

ci: Use Applied AI release bot token to create release commits#506

Merged
tylerhutcherson merged 3 commits intomainfrom
ci/RAAE-1336/release-with-app-token
Feb 26, 2026
Merged

ci: Use Applied AI release bot token to create release commits#506
tylerhutcherson merged 3 commits intomainfrom
ci/RAAE-1336/release-with-app-token

Conversation

@vishal-bala
Copy link
Collaborator

@vishal-bala vishal-bala commented Feb 26, 2026

Branch protection rules in the repository prevent the release process from pushing a commit bumping the version. @tylerhutcherson and I created a GitHub App that can be excluded from that rule to enable the frictionless release workflow we want.

This PR adapts the workflow to use that bot's GitHub token for its operations.


Note

Medium Risk
Changes the release automation to authenticate with a GitHub App token and push to main, which can impact publishing if token/scopes/secret configuration is wrong. Introduces reliance on a new secret (RELEASE_BOT_PRIVATE_KEY) for release creation and version-bump commits.

Overview
Release automation now runs under a GitHub App identity instead of the default GITHUB_TOKEN. The release-new.yml workflow generates an App token (actions/create-github-app-token@v2) using RELEASE_BOT_PRIVATE_KEY, uses it for actions/checkout, and swaps GH_TOKEN to the App token for auto commands.

The release step also changes auto latest to run with --no-changelog, and adds release-bot identity env vars (RELEASE_BOT_NAME/RELEASE_BOT_EMAIL) for the new bot.

Written by Cursor Bugbot for commit dbc6a90. This will update automatically on new commits. Configure here.

@vishal-bala vishal-bala self-assigned this Feb 26, 2026
@vishal-bala vishal-bala added CI/CD auto:release Create a release when this PR is merged labels Feb 26, 2026
@jit-ci
Copy link

jit-ci bot commented Feb 26, 2026

🛡️ Jit Security Scan Results

CRITICAL HIGH MEDIUM

✅ No security findings were detected in this PR


Security scan by Jit

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: dbc6a90a5e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +19 to +20
RELEASE_BOT_NAME: "applied-ai-releases[bot]"
RELEASE_BOT_EMAIL: "applied-ai-releases[bot]@users.noreply.github.com"

Choose a reason for hiding this comment

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

P1 Badge Keep bot env names consistent across release steps

This commit renames the workflow env vars to RELEASE_BOT_NAME/RELEASE_BOT_EMAIL, but the release job still reads GH_ACTIONS_BOT_NAME/GH_ACTIONS_BOT_EMAIL in auto latest and git config. In GitHub Actions, those undefined vars resolve to empty strings, so the commit step ends up running git config user.name "" and git config user.email "", which causes git commit to fail with fatal: empty ident name whenever a version bump is produced.

Useful? React with 👍 / 👎.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

id: latest_release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ steps.app_token.outputs.token }}
Copy link

Choose a reason for hiding this comment

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

Renamed env vars not updated in shell references

High Severity

The environment variables were renamed from GH_ACTIONS_BOT_NAME/GH_ACTIONS_BOT_EMAIL to RELEASE_BOT_NAME/RELEASE_BOT_EMAIL, but all four shell references still use the old ${GH_ACTIONS_BOT_NAME} and ${GH_ACTIONS_BOT_EMAIL} names. These will expand to empty strings, causing the release version resolution, git commit identity, and release creation to use blank name/email values, breaking the entire release workflow.

Additional Locations (2)

Fix in Cursor Fix in Web

@tylerhutcherson tylerhutcherson merged commit e669aaa into main Feb 26, 2026
53 checks passed
@tylerhutcherson tylerhutcherson deleted the ci/RAAE-1336/release-with-app-token branch February 26, 2026 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto:release Create a release when this PR is merged CI/CD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants