title: Why does my secure Travis CI environment variable not work?
body: <p>Every time I deploy to Github, Travis CI says at the end of its report:</p>
  
  <blockquote>
    <p><code>Dashboard report has not been sent: neither INFECTION_BADGE_API_KEY nor STRYKER_DASHBOARD_API_KEY were found in the environment</code></p>
  </blockquote>
  
  <p>I've tried setting the environment variable at least four times:</p>
  
  <p>At first my <code>.travis.yml</code> file looked like this:</p>
  
  <pre><code>language: php
  
  php:
    - '7.3'
  
  install: composer update
  
  script:
    - vendor/bin/infection --min-covered-msi=90 --min-msi=90
  
  dd:
    secure: "A/s0...bS8="
  </code></pre>
  
  <p>This was because I had missed one of the dashes in the <code>--add</code> in <a href="https://infection.github.io/guide/mutation-badge.html" rel="nofollow noreferrer"><code>travis encrypt STRYKER_DASHBOARD_API_KEY=&lt;my-secret-uuid-key&gt; --add</code></a> (from step 4 in the link).</p>
  
  <p>When I fixed that it gave the same error message:</p>
  
  <pre><code>-dd:
  -  secure: A/s0...bS8=
  +env:
  +  global:
  +    secure: A/s0...bS8=
  </code></pre>
  
  <p>Each subsequent attempt gave the same error. Trying to generate a new key:</p>
  
  <pre><code>-    secure: A/s0...bS8=
  +    - secure: iQra...Ol0=
  </code></pre>
  
  <p>Quoting the encrypted value:</p>
  
  <pre><code>-    - secure: iQra...Ol0=
  +    - secure: 'iQra...Ol0='
  </code></pre>
  
  <p>Not using the <code>--add</code> option but manually copying from the console and pasting into the config file:</p>
  
  <pre><code>-    - secure: 'iQra...Ol0='
  +    secure: "CPPE...3nk="
  </code></pre>
  
  <p>What's the right way to get this working?</p>