Skip to content

Submit the Gradle dependency graph to GitHub #5

Closed

Description

@astrapi69

What is the case

GitHub reads no Gradle build by itself, so neither its dependency graph nor Dependabot knows what this build depends on. A read-only survey of the dependency graph on 2026-10-28 found no manifest with Gradle dependencies here, and the same in all 178 Gradle builds of the family (astrapi69/mystic-crypt-ui#634). There, Dependabot never saw commons-beanutils 1.9.4 in a released application.

The pattern (as in astrapi69/mystic-crypt-ui#634)

  • .github/workflows/dependency-submission.yml runs gradle/actions/dependency-submission on a push to develop, main, and by hand.
  • Every action is pinned by commit SHA; gradle/actions is 6.4.1, which fixes GHSA-chpw-2mqm-95cc. That advisory concerns the two-workflow download-and-submit setup, which this workflow does not use.
  • runtimeClasspath gets the scope runtime; everything else, tests and build tools, gets development.
  • Configure-on-demand is off for this run: the graph plugin registers its resolving task once the projects are evaluated.
  • Java 17, which the Gradle versions on all its branches run on (the CI uses 21, which one of them does not).

Rehearsed locally with the init scripts of gradle/actions 6.4.1 on develop: the graph has 81 packages, 0 of them with scope runtime.

Done when

The first run after the merge submits the graph, and GitHub's dependency graph for this repository shows the Gradle dependencies.

Activity

  1. added
    enhancement
    on Oct 28, 2026
  2. added a commit that references this issue on Oct 28, 2026
  3. astrapi69 commented on Oct 28, 2026

    @astrapi69
    OwnerAuthor

    Done, measured 2026-10-28 after the merge (#6):

    • First run on develop (run 40724216709, push of f708fe3): green, 1 snapshot(s) submitted (gh run view 40724216709 --log).
    • main is the default branch, and Dependabot reads only that one: the graph of develop is submitted, alerts follow when the workflow reaches main with the next release.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions