Is it possible to detect within your application that you are running within CircleCI?

I have a certain component which I cannot test in CircleCI, because it requires some Credentials which I cannot upload into our CircleCI environment.

This makes testing very cumbersome, as we have to manually toggle these tests to run them locally.

I can solve this by adding a check to only run these tests locally. Is it possible for your application to detect that it is running within circleCI? Maybe by passing a program argument/VM option to it?

It is a Scala 2.13 app, if it’s relevant.

Thank you!

Check that the environment variable CIRCLECI exists and is true.