How do I use Github Actions Plugin when run on macos

I have a simple Github Action

name: Core Service Master CI/CD Workflow

on:
  push:
    branches:
      - APP-137

jobs:
  test_deploy:
    name: 'Run tests'
    runs-on: 'macos-11'
    strategy:
        matrix:
          include:
              - xcode: "13.2"
                ios: "15.2"
              - xcode: "13.1"
    steps:
      - name: S) Checkout App
        uses: actions/checkout@v2
      - name: Analyze with SonarCloud
        uses: sonarsource/sonarcloud-github-action@master
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

I am currently building a Swift project so I need to be able to run using XCode so I need mac-os. But this errors with Container action is only supported on Linux. Is there an alternative to be able to submit the coverage with swift?

Hey there.

Indeed, instead of being written in Javascript, the sonarsource/sonarcloud-github-action action is Docker-based which is only supported on Linux runners. :confused:

You might be able to take some inspiration from an example like this, which includes manually downloading and executing the sonar-scanner.