Skip to content

Commit

Permalink
Added sonarcube code scan job
Browse files Browse the repository at this point in the history
  • Loading branch information
andreyinkin committed Nov 22, 2023
1 parent 9a9551b commit 3053209
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/code-scan.yml
Original file line number Diff line number Diff line change
@@ -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 }}
1 change: 1 addition & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sonar.projectKey=uts-cic_ontaskify_AYv01JOdSoFdTa0K0K7B

0 comments on commit 3053209

Please sign in to comment.