Is your feature request related to a problem?
In the mirrored private repository, we would like to inject a separate set of GitHub Workflows that perform internal checks and follow the organisation’s approval process. Examples of these changes include updating workflow runners from GitHub‑hosted to self‑hosted, enforcing the use of specific action versions approved by the organisation, or running additional SecOps tools as part of the workflow.
The mirrored repository should not execute certain workflows that exist in the public repository—for example, workflows related to releases—since they are not relevant or appropriate for the mirrored environment.
These injected workflows need to be present in the default branch because:
- Developers create their feature branches from the default branch, so it is important that the correct workflows are propagated into their branches.
- When a pull request is opened against the default branch, the internal‑check workflows must run to serve as a gate before any code is merged.
This ensures that organisational requirements are consistently applied across all development and merge activities.
Describe the solution you'd like
I would like the ability to define different sets of workflows for different types of repositories, as each repository may require a unique workflow configuration. Additionally, there should be an option to specify files or paths that should be excluded when syncing changes from the mirror repository to the forked repository, ensuring that certain local or repository‑specific files are not overwritten.
Describe alternatives you've considered
One alternative is to place the workflow changes on non‑default branches. However, this approach is not intuitive for developers, as they typically branch from the default branch. This makes it easy for required organisational workflows to be missed or inconsistently applied.
Additional context
No response
Is your feature request related to a problem?
In the mirrored private repository, we would like to inject a separate set of GitHub Workflows that perform internal checks and follow the organisation’s approval process. Examples of these changes include updating workflow runners from GitHub‑hosted to self‑hosted, enforcing the use of specific action versions approved by the organisation, or running additional SecOps tools as part of the workflow.
The mirrored repository should not execute certain workflows that exist in the public repository—for example, workflows related to releases—since they are not relevant or appropriate for the mirrored environment.
These injected workflows need to be present in the default branch because:
This ensures that organisational requirements are consistently applied across all development and merge activities.
Describe the solution you'd like
I would like the ability to define different sets of workflows for different types of repositories, as each repository may require a unique workflow configuration. Additionally, there should be an option to specify files or paths that should be excluded when syncing changes from the mirror repository to the forked repository, ensuring that certain local or repository‑specific files are not overwritten.
Describe alternatives you've considered
One alternative is to place the workflow changes on non‑default branches. However, this approach is not intuitive for developers, as they typically branch from the default branch. This makes it easy for required organisational workflows to be missed or inconsistently applied.
Additional context
No response