Feat: Update Trivy Scan to Trigger Workflow on Changes to .py, .java, and Dockerfile Files (#19963)

* Updated trivy scan for running on changes in .java extension files and Dockerfile

* Updated trivy scan for running on changes in .py extension files and Dockerfile

* Updated paths

---------

Co-authored-by: Tarun <tarun.p@deuexsolutions.com>
This commit is contained in:
tarunpandey23 2025-02-26 16:03:23 +05:30 committed by GitHub
parent 379c088f68
commit 7053b53b8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 19 deletions

View File

@ -4,11 +4,8 @@ on:
pull_request_target:
types: [labeled, opened, synchronize, reopened]
paths:
- "ingestion/**"
- "openmetadata-service/**"
- "openmetadata-spec/src/main/resources/json/schema/**"
- "pom.xml"
- "Makefile"
- "**/*.py"
- "ingestion/operators/docker/Dockerfile.ci"
concurrency:
group: trivy-ingestion-base-slim-scan-${{ github.head_ref || github.run_id }}

View File

@ -4,11 +4,8 @@ on:
pull_request_target:
types: [labeled, opened, synchronize, reopened]
paths:
- "ingestion/**"
- "openmetadata-service/**"
- "openmetadata-spec/src/main/resources/json/schema/**"
- "pom.xml"
- "Makefile"
- "**/*.py"
- "ingestion/Dockerfile.ci"
concurrency:
group: trivy-ingestion-scan-${{ github.head_ref || github.run_id }}

View File

@ -3,15 +3,8 @@ on:
pull_request_target:
types: [labeled, opened, synchronize, reopened]
paths:
- "openmetadata-service/**"
- "openmetadata-spec/src/main/resources/json/schema/**"
- "openmetadata-dist/**"
- "openmetadata-clients/**"
- "common/**"
- "pom.xml"
- "yarn.lock"
- "Makefile"
- "bootstrap/**"
- "**/*.java"
- "docker/development/Dockerfile"
concurrency:
group: trivy-server-scan-${{ github.head_ref || github.run_id }}
cancel-in-progress: true