Skip to content

Allow manual runs of CI and CodeQL via workflow_dispatch - #204

Merged
AndreasIgel merged 2 commits into
java-helpers:mainfrom
AndreasIgel:feature/203-workflow-dispatch
Jul 19, 2026
Merged

AndreasIgel merged 2 commits into
java-helpers:mainfrom
AndreasIgel:feature/203-workflow-dispatch

Conversation

@AndreasIgel

@AndreasIgel AndreasIgel commented Jul 19, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #203

Summary

Adds a workflow_dispatch: trigger to the CI and CodeQL workflows so maintainers can start them manually from the Actions tab (a "Run workflow" button), without pushing an artificial commit.

# .github/workflows/maven.yml  and  .github/workflows/codeql.yml
 on:
   push: ...
   pull_request: ...
+  workflow_dispatch:

Scope / rationale

  • Purely additive — existing push / pull_request (and CodeQL schedule) triggers are unchanged.
  • Useful for re-running the security scan / full build+coverage on demand after config changes (secrets, branch protection, scanner settings) or for incident response. Mirrors the release workflow, which already has workflow_dispatch.
  • dependency-review.yml is intentionally excluded: dependency-review-action needs a base/head to diff and errors on a plain workflow_dispatch run unless explicit base-ref/head-ref inputs are wired (out of scope).

Validation

  • actionlint clean on both workflows.

Related

The fork-PR quality workflows added in #186 (fork-coverage.yml, fork-sonar.yml) carry their own workflow_dispatch trigger (with a run_id input) in that PR, since those files live on #186's branch. This PR covers the manual trigger for maven.yml and codeql.yml.

Co-Authored-By: Andreas Igel <andreas.igel@computacenter.com>
@codecov

codecov Bot commented Jul 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@AndreasIgel
AndreasIgel merged commit 5763d93 into java-helpers:main Jul 19, 2026
6 checks passed
@AndreasIgel
AndreasIgel deleted the feature/203-workflow-dispatch branch July 19, 2026 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow manual runs of CI and CodeQL via workflow_dispatch

1 participant