-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Migrate uses of ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }} to ${{ steps.otelbot-token.outputs.token }}
where you will need to add this step prior which sets up ${{ steps.otelbot-token.outputs.token }}
- uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
id: otelbot-token
with:
app-id: ${{ vars.OTELBOT_APP_ID }}
private-key: ${{ secrets.OTELBOT_PRIVATE_KEY }}
Please add the above step DIRECTLY before the first step that uses its output.
Also migrate
git config user.name opentelemetrybot
git config user.email [email protected]
to
git config user.name otelbot
git config user.email [email protected]
Notes
If the OPENTELEMETRYBOT_GITHUB_TOKEN secret is being passed to a reusable workflow, you should update it to pass the OTELBOT_PRIVATE_KEY secret instead and then generate the token inside of the reusable workflow as above.
Since opentelemetrybot was a user, and otelbot is a github app, comparisons to user.login == opentelemetrybot need to be migrated to user.login == otelbot[bot] (with the trailing [bot] suffix).