Skip to content

Submit the Gradle dependency graph to GitHub #2

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, master, 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, as this repository's CI uses.

The build reads the credentials of the shut-down OSSRH while it configures, so the workflow passes placeholders for ossrhUsername, ossrhPassword. A move to the Central Portal, as astrapi69/xstream-extensions#3 did, makes them unnecessary.

Rehearsed locally with the init scripts of gradle/actions 6.4.1 on develop: the graph has 149 packages, 23 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 (#3):

    • First run on develop (run 40723418282, push of 283ca44): green, 1 snapshot(s) submitted (gh run view 40723418282 --log).
    • master is the default branch, and Dependabot reads only that one: the graph of develop is submitted, alerts follow when the workflow reaches master 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