Skip to content

This repository contains the code to create the sonar-build-breaker GitHub action to fetch the quality gates status and fail the workflow in case quality gates failed.

jkumar19/sonar-build-breaker

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.github/workflows/main.yaml

Validating Sonar Analysis and Quality Gates

This GitHub action is used to fail GitHub workflow in case Quality Gates failed. This GitHub action expect the following required parametes:

Parameters Required
sonar_url yes
sonar_token yes
project_key yes
sonar_branch yes

Sample Code Example:

- name: Sonar Build Breaker
  uses: jkumar19/sonar-build-breaker@v1.0.0
  with:
    sonar_url: "https://sonarcloud.io"
    sonar_branch: "main"
    sonar_token: ${{ secrets.SONAR_TOKEN }}
    project_key: "sonar_project_key"

About

This repository contains the code to create the sonar-build-breaker GitHub action to fetch the quality gates status and fail the workflow in case quality gates failed.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published