Skip to content

Restore dependency-submission workflow, fixed for consistent runs#1800

Merged
velo merged 2 commits into
masterfrom
restore-dependency-submission
Jun 11, 2026
Merged

Restore dependency-submission workflow, fixed for consistent runs#1800
velo merged 2 commits into
masterfrom
restore-dependency-submission

Conversation

@velo

@velo velo commented Jun 11, 2026

Copy link
Copy Markdown
Member

Restores the Dependabot Dependency Submission workflow removed in 69d8be1 ("Removing as can't get it working in a consistent manner"), with the inconsistency causes fixed.

Why it was flaky in 2024

  1. No permissions: block — submission needs contents: write; runs with a read-only default token 403'd on the snapshot POST.
  2. It triggered on every pull_request — including Dependabot's PRs, whose runs always get a read-only GITHUB_TOKEN regardless of the permissions block. With this repo's volume of dependabot PRs, the check showed red constantly while pushes to master worked, i.e. "inconsistent".

What changed vs the old version

  • permissions: contents: write declared explicitly.
  • PR runs are skipped for dependabot[bot] and fork PRs (read-only token → guaranteed 403); they show as skipped, not failed.
  • Weekly schedule + workflow_dispatch as self-healing/manual triggers.
  • -Pexamples so example modules (the quarkus one carries real compile-scope netty) are part of the graph.
  • Action bumped to maven-dependency-submission-action@v5.0.0, checkout/setup-java to v4, with maven caching.

The workflow name and job id are kept identical to the 2024 version on purpose: the snapshot job correlator (build) must match so the first run on master supersedes the stale December 2024 snapshot that is the source of ~25 of the 31 open Dependabot alerts (see #1799 for the analysis; the one real vulnerability is patched there).

Verification

  • The exact maven invocation the action performs (depgraph-maven-plugin:4.0.3:graph -DgraphFormat=json -Pexamples -Dtoolchain.skip=true) was run locally against this branch: BUILD SUCCESS, 37 module graphs generated.
  • This PR's own Dependabot Dependency Submission / build check exercises the full path end to end (same-repo human PR → write token → real submission against the PR ref).

After merging: the push to master runs the workflow and refreshes the graph; stale alerts should then auto-resolve. It can also be triggered immediately via workflow_dispatch.

🤖 Generated with Claude Code

velo added 2 commits June 11, 2026 08:23
…dabot/fork PR guard

Signed-off-by: Marvin Froeder <velo.br@gmail.com>
Signed-off-by: Marvin Froeder <velo.br@gmail.com>
@velo velo merged commit 6600d76 into master Jun 11, 2026
5 checks passed
@velo velo deleted the restore-dependency-submission branch June 11, 2026 11:37
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.

1 participant