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.

@github-actions github-actions bot added the CI label Dec 4, 2024
@github-actions github-actions bot added CI and removed CI labels Dec 4, 2024
@github-actions github-actions bot added CI and removed CI labels Dec 4, 2024
@sacha-c sacha-c changed the title ci: use github app token Draft ci: use github app token Dec 4, 2024
@sacha-c sacha-c changed the title Draft ci: use github app token Draft: ci: use github app token Dec 4, 2024
@sacha-c sacha-c changed the title Draft: ci: use github app token ci: use github app token Dec 4, 2024
@sacha-c sacha-c requested a review from scastlara December 4, 2024 15:33
@sacha-c sacha-c closed this Dec 4, 2024
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.

2 participants