title: Getting error while running sonar scannar using cloud build with an advantage of secret manager
body: <p>Can you please help on my below issue.
  As i am doing sonar scanner using cloud build with an advantage of secret manger but facing issue.
  And followed same steps of <a href="https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets" rel="nofollow noreferrer">https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets</a>
  here is my code</p>
  <pre><code>steps:
    - name: 'gcr.io/$_PROJECT_ID/sonar-scanner:latest'
      entrypoint: 'bash'
      args:
      - '-c'
      - '-Dsonar.host.url=http://sonar:9000/'
      - '-Dsonar.login=$$USERNAME'
      - '-Dsonar.password=$$PASSWORD'
      - '-Dsonar.projectKey=$_BRANCH-analytics'
      - '-Dsonar.sources=.'
      secretEnv: ['USERNAME', 'PASSWORD']
      dir: 'analytics'
  availableSecrets:
    secretManager:
    - versionName: projects/project-id/secrets/sonar_pass/versions/1
      env: 'PASSWORD'
    - versionName: projects/project-id/secrets/sonar_user/versions/2
      env: 'USERNAME'
  
  tags: ['cloud-builders-community']
  </code></pre>
  <p>and the issue i am facing is:</p>
  <pre><code>bash: line 0: bash: -Dsonar.login=$USERNAME: invalid option name
  ERROR
  ERROR: build step 0 &quot;gcr.io/project-id/sonar-scanner:latest&quot; failed: step exited with non-zero status: 2
  </code></pre>
  <p>tried with different items but can't find a solution.</p>
  <p>I am grateful if you guys help me on this.
  Thank you</p>