dependabot-terraform-action icon indicating copy to clipboard operation
dependabot-terraform-action copied to clipboard

Pull request from action do not trigger other workflows

Open patrickjahns opened this issue 4 years ago • 1 comments

When dependabot-terraform creates a pull request with the changes, it will not trigger any further actions.

This is currently a limitation from github actions itself

When you use the repository's GITHUB_TOKEN to perform tasks on behalf of the GitHub Actions app, events triggered by the GITHUB_TOKEN will not create a new workflow run. This prevents you from accidentally creating recursive workflow runs. For example, if a workflow run pushes code using the repository's GITHUB_TOKEN, a new workflow will not run even when the repository contains a workflow configured to run when push events occur.

https://help.github.com/en/actions/reference/events-that-trigger-workflows#triggering-new-workflows-using-a-personal-access-token

Suggestion from github is to use a personal access token - i.e. from a bot user. Alternatively it would be possible to create a github app and fetch a app token via https://github.com/marketplace/actions/get-an-app-token-in-an-actions-workflow

patrickjahns avatar Apr 09 '20 18:04 patrickjahns

Using an app makes sense from my PoV

StephenKing avatar May 05 '20 10:05 StephenKing