I see that you’ve analyzed develop, and I suspect that’s where most of the work happens; what you’d like to be treated as ‘main’.
To make that work, I believe you’ll need to:
dump your existing develop branch. You’ll loose your history, but since this is treated as a Short-lived branch, you’re losing functionality and you want to do this anyway
analyze develop and override the branch name in analysis to main/masterso it's taken as themain` branch. It’ll come in as “master”, rather than develop, but then you’ll
go to the project’s list of branches (shown in your screenshot) and use the 3-dots menu to ‘Rename Branch’ to develop
The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.
The anlaysis log would be everything (inclusive) from the analysis command through that error. But the error is pretty plain. One or more of the following is missing/bad:
sonar.projectKey analysis property
sonar.organization analysis property
SONAR_TOKEN env var
Your pipeline shows you setting the last one. How about the first two? Where are they set?