diff --git a/.github/workflows/code-scan.yml b/.github/workflows/code-scan.yml new file mode 100644 index 0000000..b665d07 --- /dev/null +++ b/.github/workflows/code-scan.yml @@ -0,0 +1,20 @@ +name: Code scan + +on: + push: + branches: + - main + +jobs: + code-scan: + name: Code scan + runs-on: ubuntu-latest + permissions: read-all + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - uses: sonarsource/sonarqube-scan-action@master + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..3836308 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1 @@ +sonar.projectKey=uts-cic_ontaskify_AYv01JOdSoFdTa0K0K7B