From 86450a084cad686eea44577165ae6d837e13ba35 Mon Sep 17 00:00:00 2001 From: Robbie Bise Date: Tue, 19 Mar 2024 14:04:33 -0500 Subject: [PATCH] add PR to code --- .github/workflows/cli-scan.yaml | 7 +++++++ .github/workflows/dotnet-scan.yaml | 7 +++++++ .github/workflows/maven-scan.yaml | 7 +++++++ README.md | 20 ++++++++++++++++++++ 4 files changed, 41 insertions(+) diff --git a/.github/workflows/cli-scan.yaml b/.github/workflows/cli-scan.yaml index 54682f4..6d5cd61 100644 --- a/.github/workflows/cli-scan.yaml +++ b/.github/workflows/cli-scan.yaml @@ -10,6 +10,13 @@ on: - '.github/workflows/cli-scan.yaml' - '.gitignore' - 'comp-cli/**/*' + pull_request: + types: [opened, synchronize, reopened] + paths: + - '.github/workflows/cli-scan.yaml' + - '.gitignore' + - 'comp-cli/**/*' + workflow_dispatch: diff --git a/.github/workflows/dotnet-scan.yaml b/.github/workflows/dotnet-scan.yaml index 9fb1b19..aefb4e6 100644 --- a/.github/workflows/dotnet-scan.yaml +++ b/.github/workflows/dotnet-scan.yaml @@ -11,6 +11,13 @@ on: - '.gitignore' - 'comp-dotnet/*.sln' - 'comp-dotnet/project/*.cs*' + pull_request: + types: [opened, synchronize, reopened] + paths: + - '.github/workflows/dotnet-scan.yaml' + - '.gitignore' + - 'comp-dotnet/*.sln' + - 'comp-dotnet/project/*.cs*' workflow_dispatch: jobs: diff --git a/.github/workflows/maven-scan.yaml b/.github/workflows/maven-scan.yaml index 43efd03..27e9e2e 100644 --- a/.github/workflows/maven-scan.yaml +++ b/.github/workflows/maven-scan.yaml @@ -11,6 +11,13 @@ on: - '.gitignore' - 'comp-maven/src/**/*' - 'comp-maven/pom.xml' + pull_request: + types: [opened, synchronize, reopened] + paths: + - '.github/workflows/maven-scan.yaml' + - '.gitignore' + - 'comp-maven/src/**/*' + - 'comp-maven/pom.xml' workflow_dispatch: jobs: scan-maven: diff --git a/README.md b/README.md index 2c0645d..d7f4fd4 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,12 @@ on: - '.github/workflows/cli-scan.yaml' - '.gitignore' - 'comp-cli/**/*' + pull_request: + types: [opened, synchronize, reopened] + paths: + - '.github/workflows/cli-scan.yaml' + - '.gitignore' + - 'comp-cli/**/*' ``` The SonarQube scan is run with `comp-cli` as the base directory. @@ -49,6 +55,13 @@ on: - '.gitignore' - 'comp-dotnet/*.sln' - 'comp-dotnet/project/*.cs*' + pull_request: + types: [opened, synchronize, reopened] + paths: + - '.github/workflows/dotnet-scan.yaml' + - '.gitignore' + - 'comp-dotnet/*.sln' + - 'comp-dotnet/project/*.cs*' ``` The .NET build and SonarQube scan are run in the `comp-dotnet` directory. ```yaml @@ -75,6 +88,13 @@ on: - '.gitignore' - 'comp-maven/src/**/*' - 'comp-maven/pom.xml' + pull_request: + types: [opened, synchronize, reopened] + paths: + - '.github/workflows/maven-scan.yaml' + - '.gitignore' + - 'comp-maven/src/**/*' + - 'comp-maven/pom.xml' ``` The Maven build and SonarQube scan are run in the `comp-maven` directory. ```yaml