Skip to content

Commit 26fe3ee

Browse files
Merge pull request #585 from lplewa/dependa
do not run builds twice on dependabot PRs
2 parents 9be120a + 648fb17 commit 26fe3ee

File tree

4 files changed

+17
-4
lines changed

4 files changed

+17
-4
lines changed

.github/workflows/bandit.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
# Bandit static analysis (for Python code)
22
name: Bandit
3-
4-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches-ignore:
6+
- 'dependabot/**'
7+
pull_request:
58

69
concurrency:
710
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}

.github/workflows/codeql.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ name: CodeQL
55
# "PR/push" workflow. For some reason permissions weren't properly set
66
# or recognized (by Scorecard). If Scorecard changes its behavior we can
77
# go back to use 'workflow_call' trigger.
8-
on: [push, pull_request]
8+
on:
9+
push:
10+
branches-ignore:
11+
- 'dependabot/**'
12+
pull_request:
913

1014
concurrency:
1115
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}

.github/workflows/pr_push.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
# Checks required for a PR to merge. This workflow mostly call other workflows.
22
name: PR/push
33

4-
on: [push, pull_request]
4+
on:
5+
push:
6+
branches-ignore:
7+
- 'dependabot/**'
8+
pull_request:
59

610
concurrency:
711
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}

.github/workflows/trivy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ name: Trivy
77
# use 'workflow_call' trigger.
88
on:
99
push:
10+
branches-ignore:
11+
- 'dependabot/**'
1012
pull_request:
1113
paths:
1214
- '.github/docker/*Dockerfile'

0 commit comments

Comments
 (0)