Skip to content

Commit b6f40fc

Browse files
committed
do not run builds twice on dependabot PRs
1 parent dca2157 commit b6f40fc

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
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/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)