Cannot Access Secret

Hi Experts,

I’m part of an Organization and have admin rights to one repo. I have created a secret in an environment. But when I try to access it the content is null:

env:
CERT: ${{ secrets.devTest.C8YCERT }}

##[debug]Evaluating: secrets.C8YCERT
##[debug]Evaluating Index:
##[debug]…Evaluating secrets:
##[debug]…=> Object
##[debug]…Evaluating String:
##[debug]…=> ‘C8YCERT’
##[debug]=> null
##[debug]Result: null

What am I doing wrong?

Thanks,

Marco

Solved that. I created environment secrets instead of repository secrets.