Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(release): add RELEASE_TOKEN to the environment of the release task #73

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

pranav-new-relic
Copy link
Member

@pranav-new-relic pranav-new-relic commented Sep 4, 2024

Our release-auto.sh (Release Script) doesn't seem to be working when triggered by the release workflow release.yml, and is failing with an error which hints at the fact that an unauthorized (non-bot) GitHub user is trying to perform the release.

It is clear from the rest of the configuration that the username and email of the user configured to perform the release are that of our DTK Bot, but this still doesn't seem to be working, hinting at the fact that this could be possibly an issue caused by a missing RELEASE_TOKEN; hence the update. See the comment below for more info.

Comment on lines +33 to +34
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
Copy link
Member Author

@pranav-new-relic pranav-new-relic Sep 4, 2024

Choose a reason for hiding this comment

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

adding this here because this is where the release script is failing; the script enters the bash file and then fails at the step when it's supposed to publish the release, possibly because it doesn't have a RELEASE_TOKEN in the environment to authorize/validate the release runner, our bot.

In other words, making this similar to

https://github.com/newrelic/newrelic-client-go/blob/2785c31e58443ef35d5f3872b3b930d6d595225d/.github/workflows/release.yml#L30-L39

https://github.com/newrelic/newrelic-cli/blob/d5b5d3f8d309c188c980218c030f22560f856b67/.github/workflows/release.yml#L53-L56

etc.

@NSSPKrishna NSSPKrishna marked this pull request as ready for review September 4, 2024 09:13
@NSSPKrishna NSSPKrishna merged commit 83a0038 into main Sep 4, 2024
5 checks passed
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.

2 participants