Skip to content

Submit the Gradle dependency graph to GitHub #1

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 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 a commit that references this issue on Oct 28, 2026
  2. astrapi69 commented on Oct 28, 2026

    @astrapi69
    OwnerAuthor

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

    • First run on develop (run 40721743724, push of 34167b7): green, 1 snapshot(s) submitted (gh run view 40721743724 --log).
    • GitHub's dependency graph now holds the Gradle manifest(s) settings.gradle, .github/workflows/gradle.yml; the SBOM has 90 packages (gh api repos/astrapi69/throwable/dependency-graph/sbom).
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

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions