From d775e8e1c0c220f5940b8c53becb6b8ee8fea7fa Mon Sep 17 00:00:00 2001 From: Shad Storhaug Date: Sat, 10 Feb 2024 13:31:34 +0700 Subject: [PATCH] .github/workflows/sonar.yml: Added paths to exclude CI, documentation, and website updates from triggering the scan. Fixes #873. --- .github/workflows/sonar.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml index 8b969738cf..3e385e6e7f 100644 --- a/.github/workflows/sonar.yml +++ b/.github/workflows/sonar.yml @@ -21,6 +21,17 @@ on: push: branches: - master + paths: # Exclude anything that isn't the main solution (docs, images, website, etc.) + - '.github/workflows/sonar.yml' + - 'src/**' + - '.build/dependencies.props' + - '.build/TestReferences.Common.*' + - '**/TestTargetFramework.*' + - '*.sln' + - '**/Directory.Build.*' + - '!src/docs/**' + - '!**/*.md' + - '!**/*.txt' schedule: - cron: '36 12 * * *' # 12:36 PM UTC, daily (picked an odd start time to try to avoid competing for agents with other projects) jobs: