diff options
| author | hathach <[email protected]> | 2025-10-27 12:09:33 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2025-10-27 14:15:03 +0700 |
| commit | 8865ec47814628ba1c50e52f09b7ef2fe10d463d (patch) | |
| tree | fd97f0a11c3ebb37c3d8a886b7f9c1702c4ce8fc | |
| parent | a6efc7d722f7869da76cf70e37ebf3593c66484e (diff) | |
update static_analysis.yml workflow
| -rw-r--r-- | .github/workflows/static_analysis.yml | 21 | ||||
| -rw-r--r-- | sonar-project.properties | 1 |
2 files changed, 19 insertions, 3 deletions
diff --git a/.github/workflows/static_analysis.yml b/.github/workflows/static_analysis.yml index 0af8ac42c..83eea5283 100644 --- a/.github/workflows/static_analysis.yml +++ b/.github/workflows/static_analysis.yml @@ -2,15 +2,30 @@ name: Static Analysis on: workflow_dispatch: push: - branches: - - master + branches: [ master ] + paths: + - 'src/**' + - 'examples/**' + - 'hw/bsp/**' + - '.github/workflows/static_analysis.yml' pull_request: - types: [opened, synchronize, reopened] + branches: [ master ] + paths: + - 'src/**' + - 'examples/**' + - 'hw/bsp/**' + - '.github/workflows/static_analysis.yml' permissions: actions: read contents: read security-events: write +# pull-requests: write +# checks: write + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: CodeQL: diff --git a/sonar-project.properties b/sonar-project.properties index d797bfe6f..5a19a234d 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -9,6 +9,7 @@ sonar.projectVersion=0.19.0 # Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. #sonar.sources=. +sonar.exclusions=lib/**,hw/mcu/**,test/** # Encoding of the source code. Default is default system encoding #sonar.sourceEncoding=UTF-8 |
