feat: split sonarqube and trivy in 2 workflows
This commit is contained in:
25
.github/workflows/sonarqube.yaml
vendored
Normal file
25
.github/workflows/sonarqube.yaml
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
on:
|
||||
workflow_call:
|
||||
secrets:
|
||||
SONARQUBE_HOST:
|
||||
required: true
|
||||
SONARQUBE_TOKEN:
|
||||
required: true
|
||||
|
||||
name: SonarQube
|
||||
jobs:
|
||||
sonarqube:
|
||||
name: SonarQube
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout source code
|
||||
uses: actions/checkout@master
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: SonarQube Scan
|
||||
uses: sonarsource/sonarqube-scan-action@master
|
||||
env:
|
||||
SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST }}
|
||||
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
|
||||
Reference in New Issue
Block a user