From 021f00b84863bf4988fcfae3abd0ee3a2e4f9e71 Mon Sep 17 00:00:00 2001 From: Lan Liang Date: Wed, 27 Mar 2024 23:44:56 +0000 Subject: [PATCH] chore: skip push event for branches of dependabot. Co-authored-by: zhzhuang-zju Co-authored-by: RainbowMango Signed-off-by: Lan Liang --- .github/workflows/ci-image-scanning.yaml | 6 +++++- .github/workflows/ci.yml | 4 ++++ .github/workflows/cli.yaml | 4 ++++ .github/workflows/fossa.yml | 4 ++++ .github/workflows/lint-chart.yaml | 4 ++++ 5 files changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-image-scanning.yaml b/.github/workflows/ci-image-scanning.yaml index 1774ec0c1b29..c1b1c801be5a 100644 --- a/.github/workflows/ci-image-scanning.yaml +++ b/.github/workflows/ci-image-scanning.yaml @@ -1,6 +1,10 @@ name: image-scanning on: - push: + push: + # Exclude branches created by Dependabot to avoid triggering current workflow + # for PRs initiated by Dependabot. + branches-ignore: + - 'dependabot/**' jobs: use-trivy-to-scan-image: name: image-scanning diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 526987fd21a7..72e4612b09e6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,6 +3,10 @@ on: # Run this workflow every time a new commit pushed to upstream/fork repository. # Run workflow on fork repository will help contributors find and resolve issues before sending a PR. push: + # Exclude branches created by Dependabot to avoid triggering current workflow + # for PRs initiated by Dependabot. + branches-ignore: + - 'dependabot/**' pull_request: # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency concurrency: diff --git a/.github/workflows/cli.yaml b/.github/workflows/cli.yaml index 63644b9e8426..7cb4c4428327 100644 --- a/.github/workflows/cli.yaml +++ b/.github/workflows/cli.yaml @@ -3,6 +3,10 @@ on: # Run this workflow every time a new commit pushed to upstream/fork repository. # Run workflow on fork repository will help contributors find and resolve issues before sending a PR. push: + # Exclude branches created by Dependabot to avoid triggering current workflow + # for PRs initiated by Dependabot. + branches-ignore: + - 'dependabot/**' pull_request: # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency concurrency: diff --git a/.github/workflows/fossa.yml b/.github/workflows/fossa.yml index 05165eeb343b..f9d41046dc47 100644 --- a/.github/workflows/fossa.yml +++ b/.github/workflows/fossa.yml @@ -1,6 +1,10 @@ name: FOSSA on: push: + # Exclude branches created by Dependabot to avoid triggering current workflow + # for PRs initiated by Dependabot. + branches-ignore: + - 'dependabot/**' jobs: fossa: name: FOSSA diff --git a/.github/workflows/lint-chart.yaml b/.github/workflows/lint-chart.yaml index 73321ed2bab4..8d04345a11b8 100644 --- a/.github/workflows/lint-chart.yaml +++ b/.github/workflows/lint-chart.yaml @@ -9,6 +9,10 @@ env: on: push: + # Exclude branches created by Dependabot to avoid triggering current workflow + # for PRs initiated by Dependabot. + branches-ignore: + - 'dependabot/**' pull_request: paths: - "charts/**"