forked from datahub-project/datahub
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into PowerBI-Usage-Ingestion
- Loading branch information
Showing
816 changed files
with
30,211 additions
and
21,697 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -186,7 +186,7 @@ jobs: | |
with: | ||
image: ${{ env.DATAHUB_GMS_IMAGE }}:${{ needs.setup.outputs.unique_tag }} | ||
- name: Run Trivy vulnerability scanner | ||
uses: aquasecurity/trivy-action@0.8.0 | ||
uses: aquasecurity/trivy-action@0.25.0 | ||
env: | ||
TRIVY_OFFLINE_SCAN: true | ||
with: | ||
|
@@ -250,7 +250,7 @@ jobs: | |
with: | ||
image: ${{ env.DATAHUB_MAE_CONSUMER_IMAGE }}:${{ needs.setup.outputs.unique_tag }} | ||
- name: Run Trivy vulnerability scanner | ||
uses: aquasecurity/trivy-action@0.8.0 | ||
uses: aquasecurity/trivy-action@0.25.0 | ||
env: | ||
TRIVY_OFFLINE_SCAN: true | ||
with: | ||
|
@@ -314,7 +314,7 @@ jobs: | |
with: | ||
image: ${{ env.DATAHUB_MCE_CONSUMER_IMAGE }}:${{ needs.setup.outputs.unique_tag }} | ||
- name: Run Trivy vulnerability scanner | ||
uses: aquasecurity/trivy-action@0.8.0 | ||
uses: aquasecurity/trivy-action@0.25.0 | ||
env: | ||
TRIVY_OFFLINE_SCAN: true | ||
with: | ||
|
@@ -378,7 +378,7 @@ jobs: | |
with: | ||
image: ${{ env.DATAHUB_UPGRADE_IMAGE }}:${{ needs.setup.outputs.unique_tag }} | ||
- name: Run Trivy vulnerability scanner | ||
uses: aquasecurity/trivy-action@0.8.0 | ||
uses: aquasecurity/trivy-action@0.25.0 | ||
env: | ||
TRIVY_OFFLINE_SCAN: true | ||
with: | ||
|
@@ -444,7 +444,7 @@ jobs: | |
with: | ||
image: ${{ env.DATAHUB_FRONTEND_IMAGE }}:${{ needs.setup.outputs.unique_tag }} | ||
- name: Run Trivy vulnerability scanner | ||
uses: aquasecurity/trivy-action@0.8.0 | ||
uses: aquasecurity/trivy-action@0.25.0 | ||
env: | ||
TRIVY_OFFLINE_SCAN: true | ||
with: | ||
|
@@ -480,6 +480,39 @@ jobs: | |
context: . | ||
file: ./docker/kafka-setup/Dockerfile | ||
platforms: linux/amd64,linux/arm64/v8 | ||
kafka_setup_scan: | ||
permissions: | ||
contents: read # for actions/checkout to fetch code | ||
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results | ||
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status | ||
name: "[Monitoring] Scan Kafka Setup images for vulnerabilities" | ||
runs-on: ubuntu-latest | ||
needs: [ setup, kafka_setup_build ] | ||
if: ${{ needs.setup.outputs.kafka_setup_change == 'true' || (needs.setup.outputs.publish == 'true' || needs.setup.outputs.pr-publish == 'true') }} | ||
steps: | ||
- name: Checkout # adding checkout step just to make trivy upload happy | ||
uses: acryldata/sane-checkout-action@v3 | ||
- name: Download image | ||
uses: ishworkh/docker-image-artifact-download@v1 | ||
if: ${{ needs.setup.outputs.publish != 'true' && needs.setup.outputs.pr-publish != 'true' }} | ||
with: | ||
image: ${{ env.DATAHUB_KAFKA_SETUP_IMAGE }}:${{ needs.setup.outputs.unique_tag }} | ||
- name: Run Trivy vulnerability scanner | ||
uses: aquasecurity/[email protected] | ||
env: | ||
TRIVY_OFFLINE_SCAN: true | ||
with: | ||
image-ref: ${{ env.DATAHUB_KAFKA_SETUP_IMAGE }}:${{ needs.setup.outputs.unique_tag }} | ||
format: "template" | ||
template: "@/contrib/sarif.tpl" | ||
output: "trivy-results.sarif" | ||
severity: "CRITICAL,HIGH" | ||
ignore-unfixed: true | ||
vuln-type: "os,library" | ||
- name: Upload Trivy scan results to GitHub Security tab | ||
uses: github/codeql-action/upload-sarif@v2 | ||
with: | ||
sarif_file: "trivy-results.sarif" | ||
|
||
mysql_setup_build: | ||
name: Build and Push DataHub MySQL Setup Docker Image | ||
|
@@ -501,6 +534,39 @@ jobs: | |
context: . | ||
file: ./docker/mysql-setup/Dockerfile | ||
platforms: linux/amd64,linux/arm64/v8 | ||
mysql_setup_scan: | ||
permissions: | ||
contents: read # for actions/checkout to fetch code | ||
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results | ||
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status | ||
name: "[Monitoring] Scan MySQL Setup images for vulnerabilities" | ||
runs-on: ubuntu-latest | ||
needs: [ setup, mysql_setup_build ] | ||
if: ${{ needs.setup.outputs.mysql_setup_change == 'true' || (needs.setup.outputs.publish == 'true' || needs.setup.outputs.pr-publish == 'true') }} | ||
steps: | ||
- name: Checkout # adding checkout step just to make trivy upload happy | ||
uses: acryldata/sane-checkout-action@v3 | ||
- name: Download image | ||
uses: ishworkh/docker-image-artifact-download@v1 | ||
if: ${{ needs.setup.outputs.publish != 'true' && needs.setup.outputs.pr-publish != 'true' }} | ||
with: | ||
image: ${{ env.DATAHUB_MYSQL_SETUP_IMAGE }}:${{ needs.setup.outputs.unique_tag }} | ||
- name: Run Trivy vulnerability scanner | ||
uses: aquasecurity/[email protected] | ||
env: | ||
TRIVY_OFFLINE_SCAN: true | ||
with: | ||
image-ref: ${{ env.DATAHUB_MYSQL_SETUP_IMAGE }}:${{ needs.setup.outputs.unique_tag }} | ||
format: "template" | ||
template: "@/contrib/sarif.tpl" | ||
output: "trivy-results.sarif" | ||
severity: "CRITICAL,HIGH" | ||
ignore-unfixed: true | ||
vuln-type: "os,library" | ||
- name: Upload Trivy scan results to GitHub Security tab | ||
uses: github/codeql-action/upload-sarif@v2 | ||
with: | ||
sarif_file: "trivy-results.sarif" | ||
|
||
elasticsearch_setup_build: | ||
name: Build and Push DataHub Elasticsearch Setup Docker Image | ||
|
@@ -522,6 +588,39 @@ jobs: | |
context: . | ||
file: ./docker/elasticsearch-setup/Dockerfile | ||
platforms: linux/amd64,linux/arm64/v8 | ||
elasticsearch_setup_scan: | ||
permissions: | ||
contents: read # for actions/checkout to fetch code | ||
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results | ||
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status | ||
name: "[Monitoring] Scan ElasticSearch setup images for vulnerabilities" | ||
runs-on: ubuntu-latest | ||
needs: [ setup, elasticsearch_setup_build ] | ||
if: ${{ needs.setup.outputs.elasticsearch_setup_change == 'true' || (needs.setup.outputs.publish == 'true' || needs.setup.outputs.pr-publish == 'true' ) }} | ||
steps: | ||
- name: Checkout # adding checkout step just to make trivy upload happy | ||
uses: acryldata/sane-checkout-action@v3 | ||
- name: Download image | ||
uses: ishworkh/docker-image-artifact-download@v1 | ||
if: ${{ needs.setup.outputs.publish != 'true' && needs.setup.outputs.pr-publish != 'true' }} | ||
with: | ||
image: ${{ env.DATAHUB_ELASTIC_SETUP_IMAGE }}:${{ needs.setup.outputs.unique_tag }} | ||
- name: Run Trivy vulnerability scanner | ||
uses: aquasecurity/[email protected] | ||
env: | ||
TRIVY_OFFLINE_SCAN: true | ||
with: | ||
image-ref: ${{ env.DATAHUB_ELASTIC_SETUP_IMAGE }}:${{ needs.setup.outputs.unique_tag }} | ||
format: "template" | ||
template: "@/contrib/sarif.tpl" | ||
output: "trivy-results.sarif" | ||
severity: "CRITICAL,HIGH" | ||
ignore-unfixed: true | ||
vuln-type: "os,library" | ||
- name: Upload Trivy scan results to GitHub Security tab | ||
uses: github/codeql-action/upload-sarif@v2 | ||
with: | ||
sarif_file: "trivy-results.sarif" | ||
|
||
datahub_ingestion_base_build: | ||
name: Build and Push DataHub Ingestion (Base) Docker Image | ||
|
@@ -709,7 +808,7 @@ jobs: | |
with: | ||
image: ${{ env.DATAHUB_INGESTION_IMAGE }}:${{ needs.datahub_ingestion_slim_build.outputs.tag }} | ||
- name: Run Trivy vulnerability scanner Slim Image | ||
uses: aquasecurity/trivy-action@0.8.0 | ||
uses: aquasecurity/trivy-action@0.25.0 | ||
env: | ||
TRIVY_OFFLINE_SCAN: true | ||
with: | ||
|
@@ -797,7 +896,7 @@ jobs: | |
with: | ||
image: ${{ env.DATAHUB_INGESTION_IMAGE }}:${{ needs.datahub_ingestion_full_build.outputs.tag }} | ||
- name: Run Trivy vulnerability scanner Full Image | ||
uses: aquasecurity/trivy-action@0.8.0 | ||
uses: aquasecurity/trivy-action@0.25.0 | ||
env: | ||
TRIVY_OFFLINE_SCAN: true | ||
with: | ||
|
@@ -1030,6 +1129,7 @@ jobs: | |
TEST_STRATEGY: ${{ matrix.test_strategy }} | ||
run: | | ||
echo "$DATAHUB_VERSION" | ||
./gradlew --stop | ||
./smoke-test/smoke.sh | ||
- name: Disk Check | ||
run: df -h . && docker images | ||
|
@@ -1043,8 +1143,9 @@ jobs: | |
uses: actions/upload-artifact@v3 | ||
if: failure() | ||
with: | ||
name: docker logs | ||
name: docker-logs-${{ matrix.test_strategy }} | ||
path: "docker_logs/*.log" | ||
retention-days: 5 | ||
- name: Upload screenshots | ||
uses: actions/upload-artifact@v3 | ||
if: failure() | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.