I have created YAML pipeline & want to secure PROD service connection so that shouldn't be used in QA/UAT stages. I tried to add approvals on prod service connection along with PROD Environment approval(for PROD stage) but my pipeline fails immediately after approving Environment approval & throwing below error.
"##[error]The job is using protected resource(s) for which checks have not been evaluated endpoint:XXXXXX. For more details, refer to https://aka.ms/pipelinechecks"
Request you to please guide how I could fix it or achieve required control on PROD service connection. Thanks.