Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alvarogarciapiz/gawg-quality
This action belongs to the GAWG workflow and is used to analyze source code using Sonar Cloud.
https://github.com/alvarogarciapiz/gawg-quality
actions gawg workflows
Last synced: about 1 month ago
JSON representation
This action belongs to the GAWG workflow and is used to analyze source code using Sonar Cloud.
- Host: GitHub
- URL: https://github.com/alvarogarciapiz/gawg-quality
- Owner: alvarogarciapiz
- License: other
- Created: 2024-09-08T09:13:14.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-09-12T08:13:39.000Z (2 months ago)
- Last Synced: 2024-09-26T09:04:15.861Z (about 2 months ago)
- Topics: actions, gawg, workflows
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# GAWG Quality Action
This GitHub Action is used to analyze the quality of the code using SonarCloud.
## Inputs
### `config-json`
**Required** JSON string containing workflow config parameters.
### `github-token`
**Required** GitHub token for authentication.
### `sonar-token`
**Required** SonarCloud token for authentication.
## Example Usage
```yaml
name: CIon: [push]
jobs:
quality:
runs-on: ubuntu-lateststeps:
- uses: actions/checkout@v2- name: Run GAWG Quality Action
uses: alvarogarciapiz/gawg-quality@main
with:
config-json: '{"SONAR":"enabled","SONAR_ORGANIZATION":"your_organization","SONAR_PROJECTKEY":"your_project_key","SONAR_PROJECTBASEDIR":"./","SONAR_EXTRA_ARGS":""}'
github-token: ${{ secrets.GITHUB_TOKEN }}
sonar-token: ${{ secrets.SONAR_TOKEN }}
````
## What It Does
1. Checks if SonarCloud scan is enabled.
2. Validates the presence of required SonarCloud configuration parameters.
3. Runs the SonarCloud scan if all parameters are set and the scan is enabled.