Giter VIP home page Giter VIP logo

sonarqube-action's Introduction

SonarQube Maven Scan Action

This action scans a java maven project with SonarQube. Features:

  • Does not require any change in the pom.xml, all configuration is read from sonar-project.properties
  • Cache setup and compilation
  • Optional restore of one or more artifacts to send additional info to SonarQube (e.g. coverage)
  • Check the quality gate

Inputs

  • github-token (Required): Token to access GitHub (needed to check the quality gate)
  • sonar-token (Required): Token to access SonarQube
  • sonar-host-url (Default to https://sonarcloud.io): Tells the scanner where SonarQube is hosted
  • working-directory (Default to root directory): The name of the working directory from which the scan is executed
  • java-version (Default 17): Java version used run the scans (JDK 17 is the minium required by SonarCloud)
  • restore-artifact-name<N>, Where <N> is a number (1 to 4). Optional name of an artifact to be restored to send additional info to SonarQube (e.g. coverage reports)
  • restore-artifact-path<N> (Default to the working-directory): Path where restore-artifact-name<N> will be restored (relative to the working directory)'

Example usage

      - uses: javiertuya/sonarqube-action@main
        with: 
          github-token: ${{ secrets.GITHUB_TOKEN }}
          sonar-token: ${{ secrets.SONAR_TOKEN }}
          restore-artifact-name1: "test-coverage-files"

sonarqube-action's People

Contributors

dependabot[bot] avatar javiertuya avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.