Publish Sonar JSON to Pixee #2050
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Publish Sonar JSON to Pixee" | |
on: | |
check_run: | |
types: [completed] | |
permissions: | |
contents: read | |
id-token: write | |
jobs: | |
share: | |
name: Upload Sonar Results to Pixeebot | |
runs-on: ubuntu-latest | |
if: ${{ github.event.check_run.name == 'SonarCloud Code Analysis' }} | |
steps: | |
- uses: pixee/upload-tool-results-action@v2 | |
with: | |
tool: sonar | |
sonar-token: ${{ secrets.SONAR_TOKEN }} | |
sonar-component-key: ${{ secrets.SONAR_COMPONENT_KEY }} |