commit
b21609b554
27
.github/workflows/build.yml
vendored
27
.github/workflows/build.yml
vendored
|
@ -1,28 +1,21 @@
|
||||||
|
name: Build
|
||||||
on:
|
on:
|
||||||
# Trigger analysis when pushing in master or pull requests, and when creating
|
|
||||||
# a pull request.
|
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
- test
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [opened, synchronize, reopened]
|
types: [opened, synchronize, reopened]
|
||||||
|
|
||||||
name: Main Workflow
|
|
||||||
jobs:
|
jobs:
|
||||||
sonarqube:
|
sonarcloud:
|
||||||
|
name: SonarCloud
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
# Disabling shallow clone is recommended for improving relevancy of reporting
|
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
|
||||||
fetch-depth: 0
|
- name: SonarCloud Scan
|
||||||
- name: SonarQube Scan
|
uses: SonarSource/sonarcloud-github-action@master
|
||||||
uses: sonarsource/sonarqube-scan-action@master
|
|
||||||
env:
|
env:
|
||||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
|
||||||
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
- name: SonarQube Quality Gate check
|
|
||||||
uses: sonarsource/sonarqube-quality-gate-action@master
|
|
||||||
env:
|
|
||||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
sonar.projectKey=VulnAppStatusCheck
|
sonar.projectKey=Shobika_Vulnerable-Web-Application
|
||||||
|
sonar.organization=shobika
|
Loading…
Reference in New Issue
Block a user