1
Set up Trunk CI: this allows trunk to learn the performance, reliability and runtime behavior of your CI jobs. Critical for making informed decisions on which jobs to skip.
decides from your CI history, Follow Set up Trunk CI for your provider, then create an API key in Settings → Developer → API Keys.
2
Add your API key to GitHub secrets: Create an API key and store it as a repository secret named TRUNK_API_TOKEN
The key doesn’t need any permissions.
3
Add Dynamic CI to your CI
GitHub Actions
Add a filter job to your workflow.
Buildkite
Add the plugin to your pipeline upload.
4
Turn on enforcement
When the recommendations look right, open
Dynamic CI in the Trunk app, select your
repository, and set the Dynamic CI mode to Enforced. Only an
organization admin can change it.