From 65a2ceec5c02a1676890f5cdcb35821b022a97b5 Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Mon, 17 Oct 2022 19:46:55 +0300 Subject: [PATCH] Only run e2e tests for Dependabot PRs Signed-off-by: Stefan Prodan --- .github/workflows/bootstrap.yaml | 2 +- .github/workflows/scan.yaml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/bootstrap.yaml b/.github/workflows/bootstrap.yaml index e35b9176..eedde2ec 100644 --- a/.github/workflows/bootstrap.yaml +++ b/.github/workflows/bootstrap.yaml @@ -9,7 +9,7 @@ on: jobs: github: runs-on: ubuntu-latest - if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository + if: (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) && github.actor != 'dependabot[bot]' steps: - name: Checkout uses: actions/checkout@v3 diff --git a/.github/workflows/scan.yaml b/.github/workflows/scan.yaml index d7e064f0..f1b6bd3e 100644 --- a/.github/workflows/scan.yaml +++ b/.github/workflows/scan.yaml @@ -16,6 +16,7 @@ jobs: fossa: name: FOSSA runs-on: ubuntu-latest + if: github.actor != 'dependabot[bot]' steps: - uses: actions/checkout@v3 - name: Run FOSSA scan and upload build data @@ -28,7 +29,7 @@ jobs: snyk: name: Snyk runs-on: ubuntu-latest - if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository + if: (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) && github.actor != 'dependabot[bot]' steps: - uses: actions/checkout@v3 - name: Setup Kustomize @@ -51,6 +52,7 @@ jobs: codeql: name: CodeQL runs-on: ubuntu-latest + if: github.actor != 'dependabot[bot]' steps: - name: Checkout repository uses: actions/checkout@v3