aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/ci.yml17
-rw-r--r--sonar-project.properties2
2 files changed, 16 insertions, 3 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 0765ada..e538dab 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -15,7 +15,7 @@ jobs:
name: source-code
path: .
- SAST-Unit-tests:
+ Unit-tests:
runs-on: ubuntu-latest
needs: Clone-repo
steps:
@@ -25,7 +25,7 @@ jobs:
path: .
- run: make tests
- SAST-clang:
+ clang-analysis:
runs-on: ubuntu-latest
needs: Clone-repo
steps:
@@ -46,9 +46,20 @@ jobs:
- run: sudo apt-get install -y flawfinder
- run: make security-analysis
+ SAST-SonarCloud:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/download-artifact@v3
+ with:
+ name: source-code
+ path: .
+ - uses: SonarSource/sonarcloud-github-action@master
+ env:
+ SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
+
Build:
runs-on: ubuntu-latest
- needs: [ SAST-Unit-tests, SAST-clang, SAST-flawfinder ]
+ needs: [ Unit-tests, clang-analysis, SAST-flawfinder, SAST-SonarCloud ]
steps:
- uses: actions/download-artifact@v3
with:
diff --git a/sonar-project.properties b/sonar-project.properties
new file mode 100644
index 0000000..f08af7a
--- /dev/null
+++ b/sonar-project.properties
@@ -0,0 +1,2 @@
+sonar.organization=syndamia
+sonar.projectKey=Syndamia_pico-web