From 62f4e21d7c727d698a7bab1e6bccd6375f1d8b06 Mon Sep 17 00:00:00 2001 From: Teddy Date: Wed, 10 Jul 2024 17:07:58 +0200 Subject: [PATCH] fix: phylum trigger event (#16991) --- .github/workflows/phylum.yml | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/.github/workflows/phylum.yml b/.github/workflows/phylum.yml index df374f36100..be51494ca9c 100644 --- a/.github/workflows/phylum.yml +++ b/.github/workflows/phylum.yml @@ -6,12 +6,7 @@ on: - "ingestion/**" - "openmetadata-service/**" - "openmetadata-ui/**" - pull_request: - types: [labeled, opened, synchronize, reopened] - paths: - - "ingestion/**" - - "openmetadata-service/**" - - "openmetadata-ui/**" + jobs: analyze_deps: name: Analyze dependencies with Phylum @@ -21,6 +16,23 @@ jobs: pull-requests: write runs-on: ubuntu-latest steps: + + - name: Wait for the labeler + uses: lewagon/wait-on-check-action@v1.3.3 + if: ${{ github.event_name == 'pull_request_target' }} + with: + ref: ${{ github.event.pull_request.head.sha }} + check-name: Team Label + repo-token: ${{ secrets.GITHUB_TOKEN }} + wait-interval: 90 + - name: Verify PR labels + uses: jesusvasquez333/verify-pr-label-action@v1.4.0 + if: ${{ github.event_name == 'pull_request_target' }} + with: + github-token: '${{ secrets.GITHUB_TOKEN }}' + valid-labels: 'safe to test' + pull-request-number: '${{ github.event.pull_request.number }}' + disable-reviews: true # To not auto approve changes - name: Checkout the repo uses: actions/checkout@v4 with: