NO-JIRA fix ownership of sq files #326
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
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] | |
name: Main Workflow | |
jobs: | |
next: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
pull-requests: read | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
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; | |
- 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/ |