title: Find the value of a masked CI/CD variable
body: <p>I am currently trying to find the value of a CI/CD variable in a VM. I tried to output it but I find out the variable’s value is masked in job logs. This is the code I used in my .gitlab-ci.yml.</p>
  <pre><code>image: python:3
  
  stages:
    - deploy
  
  deploy:
    stage: deploy
    script:
      - echo &quot;List all CI/CD variables&quot;
      - export
  </code></pre>
  <p>The line in question is</p>
  <pre><code>...     
  declare -x Secret_variable =&quot;[MASKED]&quot;
  ...
  </code></pre>
  <p>Is there a way for me to get the find value without modifying the checkbox in the Variables section of Gitlab?</p>