Verify that the value of the --scopes parameter is correct and that you have sufficient permissions to the target Entra tenant and the corresponding Azure subscription.
The --json-auth parameter results in the JSON output which can be added directly to GitHub as a secret and referenced in GitHub Actions that require access to the target Azure subscription
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin