Skip to content

📦Manage SonarScanner using The Ops Platform 🚀

License

Notifications You must be signed in to change notification settings

cto-ai/sonarqube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SonarQube

An Ops port of the SonarScanner CLI tool.

Requirements

To run this or any other Op, install the Ops Platform.

Find information about how to run and build Ops via the Ops Platform Documentation.

This Op also requires:

  • A SonarQube server
    • Anyone and sonar-users group should have all permissions removed
    • Default visibility of new projects should be set to private
      • Administration Tab -> Projects -> Managements -> Default visibility of new projects
    • Create a user for the ops, with permissions Administer System, Execute Analysis, and Create Projects
      • Security -> Global Permission -> update checkboxes
    • Get the token for that user and add it to secrets store via ops secrets:set. Key should ideally be sonarToken
    • Get the server address ready to input when it prompts
  • A publicly accessible Git repository, with HTTP(S) protocol enabled
    • Currently this op does not work with SSH protocol

Usage

To initiate the interactive SonarQube CLI prompt run:

ops run cto.ai/sonarqube

Local Development / Running from Source

1. Clone the repo:

git clone <git url>

2. Navigate into the directory and install dependencies:

cd sonarqube && go get ./...

3. Run the Op from your current working directory with:

ops run .

Debugging Issues

Use the DEBUG flag in the terminal to see verbose Op output like so:

DEBUG=sonarqube:* ops run sonarqube

When submitting issues or requesting help, be sure to also include the version information. To get your ops version run:

ops -v

Resources

SonarQube Docs

Contributing

See the Contributing Docs for more information.

Contributors

Mario Mejia
Mario Mejia

Calvin Holloway
Calvin Holloway

aschereT's face here
Vincent Tan

Min Sohng
Min Sohng

LICENSE

MIT

About

📦Manage SonarScanner using The Ops Platform 🚀

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published