-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENH: add sonar configuration #162
base: master
Are you sure you want to change the base?
Conversation
Quality Gate passedIssues Measures |
@igoroctaviano @pedrokohler I can't figure out why |
I don't have access to this link https://sonarcloud.io/project/configuration/GitHubActions?id=ImagingDataCommons_dicom-microscopy-viewer... it redirects to https://sonarcloud.io/summary/new_code?id=ImagingDataCommons_dicom-microscopy-viewer so I can't tell what are the instructions there to be able to help you effectively. |
Try:
|
@igoroctaviano no difference. It's as if the action does not have access to the secret. |
@pedrokohler that is just a printout to test whether that secret is accessible at all. If it prints out 0, it means there is no access. Removing it will just remove the ability to debug. |
@fedorov a different env declaration is: name: Build
permissions:
contents: read
pull-requests: read
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
jobs:
sonarcloud:
name: SonarQube Cloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Check SONAR_TOKEN
run: echo "SONAR_TOKEN length is $(echo -n $SONAR_TOKEN | wc -c)"
- name: Install dependencies
run: yarn
- name: Test and coverage
run: yarn jest --coverage
- name: SonarQube Cloud Scan
uses: SonarSource/sonarcloud-github-action@master |
done following the steps in
https://sonarcloud.io/project/configuration/GitHubActions?id=ImagingDataCommons_dicom-microscopy-viewer