huaxingao commented on code in PR #16291: URL: https://github.com/apache/iceberg/pull/16291#discussion_r3221575723
########## .github/workflows/cve-scan.yml: ########## @@ -0,0 +1,168 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + +name: "CVE Scan" +on: + push: + branches: + - 'main' + - '0.*' + - '1.*' + - '2.*' + tags: + - 'apache-iceberg-**' + +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: false + +jobs: + + # ------------------------------------------------------------------ + # Trivy CVE scan — scans bundled jars for known vulnerabilities. + # + # Runs on push to main/release branches only (not PRs). Results are + # uploaded as SARIF to the GitHub Security tab for ongoing tracking. + # The scan is informational and does not block the build. + # ------------------------------------------------------------------ + cve-scan: + runs-on: ubuntu-24.04 + permissions: + contents: read + security-events: write + strategy: + fail-fast: false + matrix: + include: + - distribution: kafka-connect-runtime + build-task: >- + -DkafkaVersions=3 + :iceberg-kafka-connect:iceberg-kafka-connect-runtime:distZip + scan-path: kafka-connect/kafka-connect-runtime/build/distributions + unpack: true + - distribution: aws-bundle + build-task: :iceberg-aws-bundle:shadowJar + scan-path: aws-bundle/build/libs + unpack: false + - distribution: azure-bundle + build-task: :iceberg-azure-bundle:shadowJar + scan-path: azure-bundle/build/libs + unpack: false + - distribution: gcp-bundle + build-task: :iceberg-gcp-bundle:shadowJar + scan-path: gcp-bundle/build/libs + unpack: false + - distribution: spark-runtime-3.4_2.12 + build-task: >- + -DsparkVersions=3.4 + :iceberg-spark:iceberg-spark-runtime-3.4_2.12:shadowJar + scan-path: spark/v3.4/spark-runtime/build/libs + unpack: false + - distribution: spark-runtime-3.5_2.12 + build-task: >- + -DsparkVersions=3.5 + :iceberg-spark:iceberg-spark-runtime-3.5_2.12:shadowJar + scan-path: spark/v3.5/spark-runtime/build/libs + unpack: false + - distribution: spark-runtime-4.0_2.13 + build-task: >- + -DsparkVersions=4.0 + :iceberg-spark:iceberg-spark-runtime-4.0_2.13:shadowJar + scan-path: spark/v4.0/spark-runtime/build/libs + unpack: false + - distribution: spark-runtime-4.1_2.13 + build-task: >- + -DsparkVersions=4.1 + :iceberg-spark:iceberg-spark-runtime-4.1_2.13:shadowJar + scan-path: spark/v4.1/spark-runtime/build/libs + unpack: false + - distribution: flink-runtime-1.20 + build-task: >- + -DflinkVersions=1.20 + :iceberg-flink:iceberg-flink-runtime-1.20:shadowJar + scan-path: flink/v1.20/flink-runtime/build/libs + unpack: false + - distribution: flink-runtime-2.0 + build-task: >- + -DflinkVersions=2.0 + :iceberg-flink:iceberg-flink-runtime-2.0:shadowJar + scan-path: flink/v2.0/flink-runtime/build/libs + unpack: false + - distribution: flink-runtime-2.1 + build-task: >- + -DflinkVersions=2.1 + :iceberg-flink:iceberg-flink-runtime-2.1:shadowJar + scan-path: flink/v2.1/flink-runtime/build/libs + unpack: false + - distribution: open-api-rest-fixture Review Comment: I think it's `open-api-test-fixtures-runtime` ([build.gradle:1160](https://github.com/apache/iceberg/blob/main/build.gradle#L1160)) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
