Skip to content

Commit 8865ec4

Browse files
committed
update static_analysis.yml workflow
1 parent a6efc7d commit 8865ec4

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

.github/workflows/static_analysis.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,30 @@ name: Static Analysis
22
on:
33
workflow_dispatch:
44
push:
5-
branches:
6-
- master
5+
branches: [ master ]
6+
paths:
7+
- 'src/**'
8+
- 'examples/**'
9+
- 'hw/bsp/**'
10+
- '.github/workflows/static_analysis.yml'
711
pull_request:
8-
types: [opened, synchronize, reopened]
12+
branches: [ master ]
13+
paths:
14+
- 'src/**'
15+
- 'examples/**'
16+
- 'hw/bsp/**'
17+
- '.github/workflows/static_analysis.yml'
918

1019
permissions:
1120
actions: read
1221
contents: read
1322
security-events: write
23+
# pull-requests: write
24+
# checks: write
25+
26+
concurrency:
27+
group: ${{ github.workflow }}-${{ github.ref }}
28+
cancel-in-progress: true
1429

1530
jobs:
1631
CodeQL:

sonar-project.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ sonar.projectVersion=0.19.0
99

1010
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
1111
#sonar.sources=.
12+
sonar.exclusions=lib/**,hw/mcu/**,test/**
1213

1314
# Encoding of the source code. Default is default system encoding
1415
#sonar.sourceEncoding=UTF-8

0 commit comments

Comments
 (0)