Skip to content

Commit

Permalink
Merge pull request #7425 from MartinForReal/shafan/github
Browse files Browse the repository at this point in the history
Chores: trigger build only when needed
  • Loading branch information
MartinForReal authored Oct 25, 2024
2 parents 9cbbbe7 + c65bf17 commit a89cf7d
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/codespell.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
# https://github.com/codespell-project/actions-codespell
# https://github.com/codespell-project/codespell
name: codespell
on: [push, pull_request]
on:
push:
branches: [ master, 'release-**' ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master, 'release-**' ]
permissions:
contents: read

Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
#
# Source repository: https://github.com/actions/dependency-review-action
name: 'Dependency Review'
on: [pull_request]
on:
pull_request:
branches: [ master, 'release-**' ]

permissions:
contents: read
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name: Code Lint

on:
workflow_dispatch:
on:
push:
branches: [ master, 'release-**' ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master, 'release-**' ]
workflow_dispatch:

permissions:
contents: read
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/trivy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ on:
- '!vendor/**'
- 'health-probe-proxy/**'
schedule:
- cron: '0 */24 * * *'
- cron: '0 1 * * *'
permissions:
contents: read
jobs:
Expand Down Expand Up @@ -80,7 +80,6 @@ jobs:
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH,MEDIUM,LOW,UNKNOWN'
skip-setup-trivy: true
env:
TRIVY_SKIP_DB_UPDATE: true
- name: Upload Trivy scan results to GitHub Security tab
Expand All @@ -97,7 +96,6 @@ jobs:
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH,MEDIUM,LOW,UNKNOWN'
skip-setup-trivy: true
env:
TRIVY_SKIP_DB_UPDATE: true
- name: Upload Trivy scan results to GitHub Security tab
Expand All @@ -114,6 +112,5 @@ jobs:
output: 'dependency-results.sbom.json'
scan-ref: '.'
github-pat: ${{ secrets.GITHUB_TOKEN }}
skip-setup-trivy: true
env:
TRIVY_SKIP_DB_UPDATE: true

0 comments on commit a89cf7d

Please sign in to comment.