Get SonarCloud Code Analysis results synchronously

Template for a good new topic, formatted with Markdown:

  • ALM used : GitHub
  • CI system used : GitHub Actions

Currently, the SonarCloud Code Analysis workflow only runs after my on pull_request workflow has been ran. However, I want to use the results of the analysis for subsequent jobs in my workflow, so is it possible to run the SonarCloud Code Analysis synchronously get use the results in the same workflow that triggered it.

Hi,

Welcome to the community!

I believe you’re looking for the Quality Gate action, which will pause until the Quality Gate has been computed so you can act on the results.

 
HTH,
Ann