Skip to content

Commit

Permalink
fix(ci): only scan on master branch (datahub-project#7047)
Browse files Browse the repository at this point in the history
  • Loading branch information
anshbansal authored and Eric Yomi committed Jan 18, 2023
1 parent fed5769 commit ebae046
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/docker-unified.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ jobs:
file: ./docker/datahub-gms/Dockerfile
platforms: linux/amd64,linux/arm64
gms_scan:
if: github.ref_name == 'master'
permissions:
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
Expand Down Expand Up @@ -148,6 +149,7 @@ jobs:
file: ./docker/datahub-mae-consumer/Dockerfile
platforms: linux/amd64,linux/arm64
mae_consumer_scan:
if: github.ref_name == 'master'
name: "[Monitoring] Scan MAE consumer images for vulnerabilities"
runs-on: ubuntu-latest
needs: [setup, mae_consumer_build]
Expand Down Expand Up @@ -208,6 +210,7 @@ jobs:
file: ./docker/datahub-mce-consumer/Dockerfile
platforms: linux/amd64,linux/arm64
mce_consumer_scan:
if: github.ref_name == 'master'
name: "[Monitoring] Scan MCE consumer images for vulnerabilities"
runs-on: ubuntu-latest
needs: [setup, mce_consumer_build]
Expand Down Expand Up @@ -268,6 +271,7 @@ jobs:
file: ./docker/datahub-upgrade/Dockerfile
platforms: linux/amd64,linux/arm64
datahub_upgrade_scan:
if: github.ref_name == 'master'
name: "[Monitoring] Scan DataHub Upgrade images for vulnerabilities"
runs-on: ubuntu-latest
needs: [setup, datahub_upgrade_build]
Expand Down Expand Up @@ -327,6 +331,7 @@ jobs:
file: ./docker/datahub-frontend/Dockerfile
platforms: linux/amd64,linux/arm64
frontend_scan:
if: github.ref_name == 'master'
name: "[Monitoring] Scan Frontend images for vulnerabilities"
runs-on: ubuntu-latest
needs: [setup, frontend_build]
Expand Down

0 comments on commit ebae046

Please sign in to comment.