Skip to content

Commit

Permalink
Merge pull request #585 from lplewa/dependa
Browse files Browse the repository at this point in the history
do not run builds twice on dependabot PRs
  • Loading branch information
lukaszstolarczuk authored Jul 2, 2024
2 parents 9be120a + 648fb17 commit 26fe3ee
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/bandit.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Bandit static analysis (for Python code)
name: Bandit

on: [push, pull_request]
on:
push:
branches-ignore:
- 'dependabot/**'
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ name: CodeQL
# "PR/push" workflow. For some reason permissions weren't properly set
# or recognized (by Scorecard). If Scorecard changes its behavior we can
# go back to use 'workflow_call' trigger.
on: [push, pull_request]
on:
push:
branches-ignore:
- 'dependabot/**'
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/pr_push.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# Checks required for a PR to merge. This workflow mostly call other workflows.
name: PR/push

on: [push, pull_request]
on:
push:
branches-ignore:
- 'dependabot/**'
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ name: Trivy
# use 'workflow_call' trigger.
on:
push:
branches-ignore:
- 'dependabot/**'
pull_request:
paths:
- '.github/docker/*Dockerfile'
Expand Down

0 comments on commit 26fe3ee

Please sign in to comment.