Using from_secrets in pipeline environment definition

Hi,

The docs show that you can define environment variables at the pipeline level, which are injected in the steps:

environment:
  MY_TOKEN: token

I tried to use the from_secret keyword in there but I’m not able to do so:

environment:
  MY_TOKEN:
    from_secret: MY_SECRET

Is this supported ?

Keep up the great work !

The top-level environment section does not support the from_secret value at this time.

Good to know, thanks !

Yeah I had created a feature request for this, it would be very useful, hopefully it is on the roadmap.

1 Like