update static_analysis.yml workflow

This commit is contained in:
hathach 2025-10-27 12:09:33 +07:00
parent a6efc7d722
commit 8865ec4781
No known key found for this signature in database
GPG Key ID: 26FAB84F615C3C52
2 changed files with 19 additions and 3 deletions

View File

@ -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:

View File

@ -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