How to expose secret on command?

  - name: test
    image: **/**
    environment:
      TEST:
        from_secret: test
    commands:
      - env
...
TEST: ****
...

The secret all are masked, is there a way to expose them?

The secret all are masked, is there a way to expose them?

the secrets are automatically masked in the output. this is not something that can be disabled.

How to use these env var?

sed -e "s/r/${TEST}/" ./test.yml > ./test1.yml
out: sed -e "s/r//" ./test.yml > ./test1.yml

The var is empty

see https://docs.drone.io/pipeline/environment/syntax/#common-problems

Thank you for reply.

The problem solved.