Skip to content

Conversation

@sacha-c
Copy link
Collaborator

@sacha-c sacha-c commented Dec 4, 2024

Our bump workflow was unable to trigger the dependent publish workflow due to using the GITLAB_TOKEN which has limitations to avoid recursive workflows. See https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/triggering-a-workflow#triggering-a-workflow-from-a-workflow
So the solution is either to use a Personal Access Token, or a GitHub App Installation Token.
The GitHub App Installation Token seems like a more future-proof setup, so here is an initial attempt at getting it to work.

The idea here is that we now have an organization app which should be given access to this repository: https://github.com/apps/elements-helper

Then we use a github action actions/create-github-app-token@v1 to create a special 1-hour token from the app, which our actions can use! And with this, the publish workflow should be created 😄

I've created the associated ELEMENTS_HELPER_APP_ID and ELEMENTS_HELPER_PRIVATE_KEY which will be used by the action to create the token.

@sacha-c sacha-c requested a review from scastlara December 4, 2024 15:42
@github-actions github-actions bot added the CI label Dec 4, 2024
@sacha-c sacha-c self-assigned this Dec 4, 2024
@github-actions github-actions bot added CI and removed CI labels Dec 4, 2024
Copy link
Collaborator

@scastlara scastlara left a comment

Choose a reason for hiding this comment

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

🤞

@sacha-c sacha-c merged commit c990ee1 into main Dec 4, 2024
3 checks passed
@sacha-c sacha-c deleted the github-app-token branch December 23, 2024 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants