Update ci-helm-dockerfile-dependencies #1833
This file contains hidden or 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
| on: | |
| # Trigger analysis when pushing in master or pull requests, and when creating | |
| # a pull request. | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| schedule: | |
| - cron: '0 4 * * *' | |
| workflow_dispatch: | |
| name: Main Workflow | |
| jobs: | |
| next: | |
| runs-on: github-ubuntu-latest-s | |
| permissions: | |
| id-token: write | |
| pull-requests: read | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| # Disabling shallow clone is recommended for improving relevancy of reporting | |
| fetch-depth: 0 | |
| - id: secrets | |
| uses: SonarSource/[email protected] | |
| with: | |
| secrets: | | |
| development/kv/data/next token | sq_next_token; | |
| development/kv/data/sonarcloud token | sq_cloud_eu_token; | |
| development/kv/data/sonarqube-us token | sq_cloud_us_token; | |
| - name: SonarQube Next Scan | |
| uses: sonarsource/sonarqube-scan-action@master | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| SONAR_TOKEN: ${{ fromJSON(steps.secrets.outputs.vault).sq_next_token }} | |
| SONAR_HOST_URL: https://next.sonarqube.com/sonarqube/ | |
| - name: SonarQube Cloud EU Scan | |
| if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' | |
| uses: sonarsource/sonarqube-scan-action@master | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| SONAR_TOKEN: ${{ fromJSON(steps.secrets.outputs.vault).sq_cloud_eu_token }} | |
| SONAR_HOST_URL: https://sonarcloud.io | |
| - name: SonarQube Cloud US Scan | |
| if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' | |
| uses: sonarsource/sonarqube-scan-action@master | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| SONAR_TOKEN: ${{ fromJSON(steps.secrets.outputs.vault).sq_cloud_us_token }} | |
| SONAR_HOST_URL: https://sonarqube.us | |
| - name: Run IRIS Analysis | |
| if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' | |
| uses: SonarSource/unified-dogfooding-actions/run-iris@v1 | |
| with: | |
| primary_project_key: "SonarSource_helm-chart-sonarqube" | |
| primary_platform: "Next" | |
| shadow1_project_key: "SonarSource_helm-chart-sonarqube" | |
| shadow1_platform: "SQC-EU" | |
| shadow2_project_key: "SonarSource_helm-chart-sonarqube" | |
| shadow2_platform: "SQC-US" |