Skip to content

Problem: Survey variables of type "Secret" not passed to task execution #3994

Description

@sickwell6988

Issue

Survey variables defined as type Secret not passed inside task (reproduced for bash script task template). The same variable defined as string or int works correctly.

Steps to reproduce

  1. Create a task template with type Bash.
  2. Add a Survey variable and set its type to Secret.
  3. Reference the variable in the script (e.g. echo $MY_VAR or echo ${MY_VAR}).
  4. Run the task.

Example of script:

#!bin/bash
MY_VAR="$1"
echo "$MY_VAR"

Survey config:
Image

Expected: The secret value is passed to the script (yeah, you can reveal secret in logs as it's your bash script, but cannot see it in task output debug logs + on "Re-run" popup)
Actual: The variable is empty / inaccessible.

Impact

Ansible (task execution), Other

Installation method

Docker

Database

SQLite

Browser

Chrome

Semaphore Version

2.18.12

Ansible Version

Logs & errors

No response

Manual installation - system information

No response

Configuration

No response

Additional information

Reported by a community user via support on 2026-06-16.

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions