Access drone secrets in appleboy/drone-ssh script section

Greetings Dear community,
These secrets [prod_ssh_username & prod_ssh_password] work and I can ssh into destination host so I think drone is working.
but all my tries to get the bbp secret using in script section fail.

REPOSITORY          TAG               IMAGE ID
drone/drone              1                    89752c9cb739
appleboy/drone-ssh   latest             1858d153b41f


- name: prod
  image: appleboy/drone-ssh
  pull: always
  when:
    event:
      - push
    branch:
      - prod
  environment:
    bbp:
      from_secret: bbp
  settings:
    host: x.x.x.x
    port: 22
    username:
      from_secret: prod_ssh_username
    password: 
      from_secret: prod_ssh_password
    bbp:
      from_secret: bbp
    envs: [bbp]
    script:
      - cd /var/www/html/
      - echo $bbp
      - echo ${bbp}
      - echo $${bbp}

this is the drone output:


======CMD======
cd /var/www/html/
echo $bbp
echo 
echo ${bbp}
======END====== 
out:
out:
out:

I have rad all the toppics avilable.
in other solved issues the variable (bbp in my case) is only defined below environment, and not in settings section, i have testet without the settings section too with no luck.
what am I missing? Any help is appreciated.
Thank you for your time.

I do not think you are missing anything … I do not think the plugin supports injecting secrets into the remote machine script. You would have to follow up with the plugin author to get more details https://github.com/appleboy/drone-ssh

Dear Brad

Thank you for your response,
This is how i overcame this situation, following this solved issue:

I created a test variable and could access the needed secret.
I have no idea why my “bbp” variable did not get populated but the test variable was !!!

i have opened an issue on the appleboy/drone-ssh repository and hope to get some clearance.
for now this issue is solved.