How to make the github build always pass? (prevent from failing)

Hi, we have the GitHub app installing in our repository. We want to be able to see the reports (pull request comment, etc), but we don’t want the build to fail. We want the build to be always green. How to achieve that? Thanks!

  • ALM used: GitHub
  • CI system used: GitHub Actions
  • Languages of the repository: TypeScript / JavaScript / JSON / HTML / CSS

Hi,

Welcome to the community!

I’m going to move this to the Product Manager for a Day category because what I believe you’re asking for doesn’t exist.

For us, it’s a feature that when your pull request doesn’t meet your own standards, i.e. the Quality Gate you’ve set on the project, we mark it as a failure.

Would you mind expanding a little on why that’s not desirable for you?

 
Thx,
Ann

We have an old codebase that sonar got added recently, and it feels like it’s failing way too often when we edit some older functions, for example. And we don’t want to refactor those functions now. We want the build to keep passing because we rely on it with many other github actions, we only merge when it’s green, but the pull request comment could still happen, for example.

1 Like

Hello @brunolemos ,

Could you share more details of your GitHub Action setup? With the default one, your CI should not fail in case your Quality Gate fails. For GitHub, we are using the GitHub Check feature in case customers want to enforce the Quality Gate on pull requests.