Skip to content

Instantly share code, notes, and snippets.

View porterde's full-sized avatar

Dave Porter porterde

  • Sheffield, UK
View GitHub Profile
@porterde
porterde / ci.yml
Last active April 24, 2020 13:03
Work around to enable SonarCloud GitHub Actions to scan Vue.js files containing TypeScript
# 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