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
# Work around for issue described here: | |
# https://community.sonarsource.com/t/sonarqube-scanner-fails-to-analyze-vue-files-failed-to-parse-file-vue/17751/2 | |
# https://jira.sonarsource.com/browse/MMF-1441 | |
# This is for use in a GitHub Actions script using the SonarCloud GitHub Action which runs the scanner in Docker. | |
# If you're running Sonar scanner outside of GitHub Actions this hack certainly requires changes to make | |
# it work - I wish you luck! | |
# | |
# The basic idea in the hack is to run an Nginx docker container, alongside the Sonar scanner container, | |
# as a proxy for sonarcloud.io. Nginx intercepts the request to download the javascript scanning plugin |