Skip to content

SonarCloud

SonarCloud #5696

Workflow file for this run

name: SonarCloud
on:
workflow_run:
workflows: ["Zowe CLI"]
types: [completed]
jobs:
sonar:
runs-on: ubuntu-latest
if: github.event.workflow_run.conclusion == 'success'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
repository: ${{ github.event.workflow_run.head_repository.full_name }}
ref: ${{ github.event.workflow_run.head_branch }}
fetch-depth: 0
- name: Configure Sonar Scan
uses: zowe-actions/octorelease/script@v1
env:
COVERAGE_ARTIFACT: "ubuntu-22.04-20.x-results:__tests__/__results__"
# COVERAGE_ARTIFACT: "ubuntu-latest-20.x-results:__tests__/__results__"
with:
script: sonarConfig
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}