please rewrite this

I have a pipeline to rotate secrets in a CircleCI context. When the pipeline is triggered manually or by a git push event it works just fine. The problem is that the scheduled pipeline is failing with the following error message I can't figure out what is wrong:
