Try to fix transitive dependency conflict issue introduced at bom consumers. #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Trivy Dependency Scan | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| paths: | |
| - 'kafka-bom/build.gradle.kts' | |
| - '.github/workflows/trivy-dependency-scan.yml' | |
| jobs: | |
| scan-kafka-clients: | |
| runs-on: ubuntu-22.04 | |
| permissions: | |
| contents: read | |
| security-events: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Download Kafka Clients JAR | |
| run: | | |
| mkdir -p artifacts | |
| curl -o artifacts/kafka-clients-7.9.5-ccs.jar \ | |
| https://packages.confluent.io/maven/org/apache/kafka/kafka-clients/7.9.5-ccs/kafka-clients-7.9.5-ccs.jar | |
| - name: Run Trivy vulnerability scanner | |
| uses: hypertrace/github-actions/trivy-image-scan@main | |
| with: | |
| image: artifacts/kafka-clients-7.9.5-ccs.jar | |
| output-mode: github |