Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
shield

GitHub Action

Mill Dependency Submission

v1.1.3

Mill Dependency Submission

shield

Mill Dependency Submission

Submits your Mill build dependency graph to the GitHub Dependency Submission API

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Mill Dependency Submission

uses: ckipp01/mill-dependency-submission@v1.1.3

Learn more about this action in ckipp01/mill-dependency-submission

Choose a version

Mill Dependency Submission

A GitHub action to submit your dependency graph from your Mill build to GitHub via their Dependency Submission API.

The main benifits of doing this are:

  1. Being able to see your dependency graph on GitHub in your Insights tab. For example you can see this here for this plugin.
  2. If enabled, Dependabot can send you alerts about security vulnerabilities in your dependencies.

Requirements

  • Right now this plugin only supports the aMill 0.10.x series.
  • Make sure in your repo settings the Dependency Graph feature is enabled as well as Dependabot Alerts if you'd like them. (Settings -> Code security and analysis)

Quick Start

Create a workflow with the following:

name: github-dependency-graph

on:
  push:
    branches:
      - main

jobs:
  submit-dependency-graph:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3
    - uses: coursier/cache-action@v6
    - uses: actions/setup-java@v3
      with:
        distribution: 'temurin'
        java-version: '17'
    - uses: ckipp01/mill-dependency-submission@v1

You can also just run the following command from the root of your workspace which will create the file for you:

curl -o .github/workflows/github-dependency-graph.yml --create-dirs https://raw.githubusercontent.com/ckipp01/mill-github-dependency-graph/main/.github/workflows/github-dependency-graph.yml

Inputs

- working-directory (optional)

The relative path of the working directory of your build (where your .mill-version and build.sc are). This defaults to ..

- plugin-version (optional)

Override the default version of ckipp01/mill-github-dependency-graph plugin that is used internally.

Troubleshooting

Unexpected Status: 404

This error happens when the Dependency Graph feature is disabled. You can enable it in Settings > Code Security and Analysis.

How this all works

You can see further explanation on the inner workings of the Mill plugin in ckipp01/mill-github-dependency-graph.