diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index e765308..f58961b 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -4,9 +4,11 @@ name: Docker Image CI on: # yamllint disable-line rule:truthy push: - branches: ["main", "develop", "feature/*"] + branches: ["main"] pull_request: + # The branches below must be a subset of the branches above branches: ["main"] + workflow_dispatch: env: IMAGE_NAME: algorithm-exercises-csharp diff --git a/.github/workflows/dotnet-coverage.yml b/.github/workflows/dotnet-coverage.yml index e4acd23..3b2682b 100644 --- a/.github/workflows/dotnet-coverage.yml +++ b/.github/workflows/dotnet-coverage.yml @@ -9,9 +9,11 @@ name: .NET Coverage on: # yamllint disable-line rule:truthy push: - branches: ["main", "develop", "feature/*"] + branches: ["main"] pull_request: + # The branches below must be a subset of the branches above branches: ["main"] + workflow_dispatch: jobs: build: diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 4a8f3f7..d12ee48 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -9,9 +9,11 @@ name: .NET Tests on: # yamllint disable-line rule:truthy push: - branches: ["main", "develop", "feature/*"] + branches: ["main"] pull_request: + # The branches below must be a subset of the branches above branches: ["main"] + workflow_dispatch: jobs: build: diff --git a/.github/workflows/gitleaks.yml b/.github/workflows/gitleaks.yml index 66820ed..a9081e3 100644 --- a/.github/workflows/gitleaks.yml +++ b/.github/workflows/gitleaks.yml @@ -3,10 +3,19 @@ name: gitleaks on: # yamllint disable-line rule:truthy - pull_request: push: + pull_request: workflow_dispatch: schedule: + # ┌───────────── minute (0 - 59) + # │ ┌───────────── hour (0 - 23) + # │ │ ┌───────────── day of the month (1 - 31) + # │ │ │ ┌───────────── month (1 - 12 or JAN-DEC) + # │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT) + # │ │ │ │ │ + # │ │ │ │ │ + # │ │ │ │ │ + # * * * * * - cron: "0 4 * * *" # run once a day at 4 AM jobs: scan: diff --git a/.github/workflows/markdown-lint.yml b/.github/workflows/markdown-lint.yml index 075db96..7ab4636 100644 --- a/.github/workflows/markdown-lint.yml +++ b/.github/workflows/markdown-lint.yml @@ -4,9 +4,11 @@ name: Markdown Lint on: # yamllint disable-line rule:truthy push: - branches: ["main", "develop", "feature/*"] + branches: ["main"] pull_request: + # The branches below must be a subset of the branches above branches: ["main"] + workflow_dispatch: permissions: read-all diff --git a/.github/workflows/snyk-code.yml b/.github/workflows/snyk-code.yml index 1fcc10e..3586162 100644 --- a/.github/workflows/snyk-code.yml +++ b/.github/workflows/snyk-code.yml @@ -9,9 +9,8 @@ name: .NET Snyk Code analysis on: # yamllint disable-line rule:truthy push: - branches: ["main", "develop", "feature/*"] pull_request: - branches: ["main"] + workflow_dispatch: jobs: security: diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index a253fbb..58514ec 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -4,10 +4,10 @@ name: SonarCloud on: # yamllint disable-line rule:truthy push: - branches: - - main + branches: ["main"] pull_request: types: [opened, synchronize, reopened] + workflow_dispatch: jobs: build: diff --git a/.github/workflows/yamllint.yml b/.github/workflows/yamllint.yml index b9ea0a1..6f69003 100644 --- a/.github/workflows/yamllint.yml +++ b/.github/workflows/yamllint.yml @@ -3,9 +3,11 @@ name: YAML lint on: # yamllint disable-line rule:truthy push: - branches: ["main", "develop", "feature/*"] + branches: ["main"] pull_request: + # The branches below must be a subset of the branches above branches: ["main"] + workflow_dispatch: jobs: lint: