Separate the source definition from the trigger
How source actions, connection-based event filters, and revision selection control which repository changes enter a pipeline execution. · advanced
A connection-based source action defines where CodePipeline retrieves code: the connection, repository, and configured BranchName. Its action provider is still named CodeStarSourceConnection, although the connection service is called AWS CodeConnections. The action produces source output for the execution.
A V2 pipeline can separately define Git trigger filters. The trigger’s gitConfiguration.sourceActionName names the source action whose repository events it evaluates. This is an action name, not a repository name or connection ARN. Explicit trigger configuration replaces that source action’s default change-detection behavior.
These settings answer different questions: which event may start an execution, and which source revision the execution uses. A configured branch is not an admission boundary for every possible execution: an explicit trigger can match other branches, and a manual start follows different revision-selection rules.
| Setting | Responsibility |
|---|---|
| Source action configuration | Repository access and default branch |
| Git trigger configuration | Automatic event admission |
| Execution revision selection | Exact source version used |