From 93649f62cd51222c5e45fb73f5ba59545bad6e05 Mon Sep 17 00:00:00 2001 From: akallabeth Date: Fri, 9 Feb 2024 08:12:54 +0100 Subject: [PATCH] [ci] add workflow_dispatch to all * Add an option to manually trigger a run of the workflow * Trigger all on pull_request_target (less error prone, does not execute code from pull request but base branch) * Remove scheduled run from CodeQL --- .github/workflows/clang-tidy.yml | 2 ++ .github/workflows/codeql-analysis.yml | 7 ++----- .github/workflows/fuzzing.yml | 9 ++++----- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/clang-tidy.yml b/.github/workflows/clang-tidy.yml index 8e068f12d..4a32f4b14 100644 --- a/.github/workflows/clang-tidy.yml +++ b/.github/workflows/clang-tidy.yml @@ -1,5 +1,7 @@ name: clang-tidy-review on: + workflow_dispatch: + branches: [ master, stable* ] pull_request_target: branches: [ master, stable* ] diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 878ac5d11..1b5842b62 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -12,13 +12,10 @@ name: "CodeQL" on: - push: + workflow_dispatch: branches: [ master, stable* ] - pull_request: - # The branches below must be a subset of the branches above + pull_request_target: branches: [ master, stable* ] - schedule: - - cron: '30 8 * * 6' permissions: contents: read diff --git a/.github/workflows/fuzzing.yml b/.github/workflows/fuzzing.yml index 3e042b2c7..e86c61674 100644 --- a/.github/workflows/fuzzing.yml +++ b/.github/workflows/fuzzing.yml @@ -1,11 +1,10 @@ name: Fuzzing testing on: - push: - branches: - - 'master' - pull_request: - types: [opened, reopened, synchronize, labeled] + workflow_dispatch: + branches: [ master, stable* ] + pull_request_target: + branches: [ master, stable* ] jobs: fuzzing: