Hi Community,
After creating a simple automation script solution stored on GitHub, I am currently attempting to automate my CI/CD steps through GitHub Actions. However, I am facing some issues, particularly during the Quality Gate phase.
As you can see below, I have the following GitHub repository:
and the following project in SonarCloud:
below is my GitHub Action:
Every time I commit something I have the following error (it's the sixth time I'm running the workflow, always the same error)
Could you please advise me on what should be my next steps to fix this issue?
This is a private repository. As such it doesn't have access to secrets configured on the organisational level with the current subscription level to GitHub.
The starter workflow requires 2 secrets:
secrets:
api-key: ${{secrets.DATAMINER_DEPLOY_KEY}}
sonarCloudToken: ${{ secrets.SONAR_TOKEN }}
Make sure you've configured on your repository Settings/SecretsAndVariables/Actions:
DATAMINER_DEPLOY_KEY
SONAR_TOKEN
In this case it looks like you forgot the SONAR_TOKEN.
You could try making a token with your sonarcloud account and then using that as the SONAR_TOKEN that will be used by the pipeline for authentication.
Hi, André, I had a look at your yml-file on your repository and did not see anything different than another AS I made myself and was working. The only thing I could not double-check: did you specify a DATAMINER_DEPLOY_KEY in your repository secrets? The SONAR_TOKEN is configured in the organization, but the DATAMINER_DEPLOY_KEY needs to be configured in every repository.