r/AZURE • • 1d ago

Media Trigger GitHub Actions from Azure DevOps

Hey all.

Wrote how-to trigger GitHub Actions from Azure DevOps. It uses a GitHub App instead of a personal access token and covers the full setup.

The earlier parts cover:

Any feedback is appreciated.

4 Upvotes

1 comment sorted by

1

u/mequelkramer 1d ago

Using a GitHub App instead of a personal access token is the right call here, and the part worth stressing is how the app is scoped. Install it only on the repositories the pipeline actually touches, and grant the minimum permissions the workflow needs, usually contents read and actions write only where a dispatch or status update is required. The installation token is short lived, so the design avoids a long lived credential sitting in a pipeline variable, and rotation becomes a non event. One addition worth considering is federated identity from Azure to GitHub, so the Azure side authenticates with a short lived token rather than a stored secret. Logging the dispatch calls on both sides also helps, since a missed trigger can then be traced to either the pipeline or the workflow run.