In order to adhere to the principal of least privilege, we would like to see an extension of the currently supported Enhanced Subject feature (as it pertains to OIDC authentication) to include the execution environment details, i.e the pipeline ID.
Today, project level resources look like:
account/<account_id>:org/{organization_id}:project/<project_id>
An extension of this would be:
account/<account_id>:org/{organization_id}:project/<project_id>:pipeline/<pipeline_id>
Alternatively, if extending custom parameters is more appropriate that is also fine as long as the goal of least privilege can be achieved.