我正在尝试为 Github 上托管的项目设置 SonarQube。尽管该项目使用 Objective-C 编程语言,但 SonarQube UI 中提供的设置很好。我使用的 Github Action 是
jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
它失败了
ERROR: Error during SonarScanner execution
java.lang.UnsupportedOperationException:
The only way to get an accurate analysis of C/C++/Objective-C files is by using the
SonarSource build-wrapper and setting the property "sonar.cfamily.build-wrapper-output"
or by using Clang Compilation Database and setting the property
"sonar.cfamily.compile-commands". None of these two options were specified.
是否有一些 Github Action 可以运行 SonarSource 构建包装器,或者下一步最好是什么?