fix: restrict workflows to trigger only on pushes to the main branch

This commit is contained in:
GitHub Actions
2026-02-26 04:11:38 +00:00
parent 06ceb9ef6f
commit 8ff3f305db
5 changed files with 10 additions and 2 deletions

View File

@@ -3,6 +3,8 @@ name: Go Benchmark
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
concurrency:

View File

@@ -3,6 +3,8 @@ name: Upload Coverage to Codecov
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
inputs:
run_backend:

View File

@@ -2,9 +2,9 @@ name: CodeQL - Analyze
on:
pull_request:
branches: [main, nightly, development]
branches: [main, nightly, development, feature/**]
push:
branches: [main, nightly, development, 'feature/**', 'fix/**']
branches: [main]
workflow_dispatch:
schedule:
- cron: '0 3 * * 1' # Mondays 03:00 UTC

View File

@@ -3,6 +3,8 @@ name: Quality Checks
on:
pull_request:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}

View File

@@ -11,6 +11,8 @@ on:
type: string
pull_request:
push:
branches:
- main
concurrency:
group: supply-chain-pr-${{ github.event.workflow_run.event || github.event_name }}-${{ github.event.workflow_run.head_branch || github.ref }}