Only run e2e tests for Dependabot PRs

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
Stefan Prodan 2022-10-17 19:46:55 +03:00
parent 516399bf81
commit 65a2ceec5c
No known key found for this signature in database
GPG key ID: 3299AEB0E4085BAF
2 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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