Skip to content

[CI] Submit the sbt dependency graph so Dependabot alerts cover the server's Java dependencies #2255

Open

Description

@shba24

Is your feature request related to a problem? Please describe.

GitHub's dependency graph can't read sbt builds, so the server's Java dependencies never reach Dependabot. For example, the server depends on HikariCP and Micrometer:

"com.zaxxer" % "HikariCP" % "7.1.0",

"io.micrometer" % "micrometer-registry-prometheus" % micrometerVersion,

A published advisory for either library raises no alert in this repository. All Dependabot pull requests so far are for the UI's npm packages, such as #1439. The repository has no .github/dependabot.yml and no workflow that submits sbt dependencies.

Describe the solution you would like

Add a workflow, .github/workflows/dependency-graph.yml, that submits the sbt dependency graph through GitHub's dependency submission API:

  • Triggers: push to main and workflow_dispatch.
  • Permissions: contents: write (the submission API needs it), nothing else.
  • Steps: actions/checkout, actions/setup-java with Temurin 17 (copy the pinned versions from the java-fmt job), sbt/setup-sbt, then scalacenter/sbt-dependency-submission.
  • Pin every third-party action by commit hash with a version comment, as the other workflows do:

- name: Checkout code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Set up JDK 17
uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4.8.0
with:
java-version: '17'
distribution: 'temurin'

Keep the action's default configurations.

There is no sbt test for a workflow. Check it on your fork:

  1. Turn on the dependency graph in the fork's settings (Code security).
  2. Run the workflow from the Actions tab.
  3. Open Insights, then Dependency graph: it lists Maven packages such as com.zaxxer:HikariCP and io.micrometer:micrometer-registry-prometheus.

Link the passing fork run in the pull request. Done when the workflow passes on main and the dependency graph lists the server's Maven dependencies.

Additional context

This issue covers only dependency alerts for sbt. Code and image scanning are separate work.

Activity

  1. added
    enhancement
    good first issue
    on Nov 16, 2026
  2. iam-hk commented on Nov 17, 2026

    @iam-hk

    take

    Plan:

    • Add .github/workflows/dependency-graph.yml: triggers on push to main and workflow_dispatch, contents: write only, steps actions/checkout → actions/setup-java (Temurin 17, matching the pinned version in lint-check.yml's java-fmt job) → sbt/setup-sbt → scalacenter/sbt-dependency-submission, every third-party action pinned by commit hash with a version comment.
    • No sbt-level test for this; I'll verify on my fork by enabling Dependency graph in its settings, running the workflow, and checking Insights → Dependency graph lists com.zaxxer:HikariCP and io.micrometer:micrometer-registry-prometheus. I'll link the passing fork run in the PR.
    • ETA: PR within 2 days.
  3. iam-hk commented on Nov 17, 2026

    @iam-hk

    take

    Plan:

    • Add .github/workflows/dependency-graph.yml: triggers on push to main and workflow_dispatch, contents: write only, steps actions/checkout → actions/setup-java (Temurin 17, matching the pinned version in lint-check.yml's java-fmt job) → sbt/setup-sbt → scalacenter/sbt-dependency-submission, every third-party action pinned by commit hash with a version comment.
    • No sbt-level test for this; I'll verify on my fork by enabling Dependency graph in its settings, running the workflow, and checking Insights → Dependency graph lists com.zaxxer:HikariCP and io.micrometer:micrometer-registry-prometheus. I'll link the passing fork run in the PR.
    • ETA: PR within 2 days.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementgood first issue

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions