Skip to content

Commit d734f85

Browse files
authored
chore(ci): add in mill-github-dependency-graph (#1164)
* chore(ci): add in mill-github-dependency-graph So no pressure ha, but I'm wondering if you'd be willing to be a guinea pig for this. @adpi2 at the Scala Center has been working on https://github.com/scalacenter/sbt-dependency-graph-action which submits your sbt projects dependency graph to GitHub to be able to both view your dependencies in the insights tab on GitHub and also to get dependabot alerts about them if you'd like. I wanted to also offer this for mill, which is what you're seeing here. You can view the project here https://github.com/ckipp01/mill-github-dependency-graph, but since there isn't a lot of larger Mill projects out there I'd love to test it on some more before announcing it. Locally this works fine with scala-cli, but it'd be great to actually see it submit. Any interest in being a tester? :D The only thing you'd need to do is ensure that the Dependency Graph feature is enabled, and then optionally the dependabot alerts if you want them. These settings are under `Settings -> Code security and analysis.` If this isn't something you want in the repo, no worries at all!
1 parent eddd500 commit d734f85

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: github-dependency-graph
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
dependency-update:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: coursier/cache-action@v6
14+
- uses: VirtusLab/scala-cli-setup@07b6783a2d71fbf9e834faa234cd51626d76cba5
15+
with:
16+
jvm: "temurin:17"
17+
18+
- name: Submit dependency graph
19+
run:
20+
./mill --import ivy:io.chris-kipp::mill-github-dependency-graph::0.0.11 io.kipp.mill.github.dependency.graph.Graph/submit
21+
env:
22+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)