SonarQube runs as a Docker Compose app on CasaOS. GitHub Actions calls it with the scan action, using a token stored as a repository secret.

CasaOS, Docker and a token

Full git history (fetch-depth: 0) gives better blame data, so new issues are attributed to the right commits.

Self-hosting means keeping it updated myself, but it's been a good excuse to learn the tool properly.