Skip to content

Commit

Permalink
Submit sbt dependencies to GitHub for vulnerability monitoring (#99)
Browse files Browse the repository at this point in the history
* Add sbt-dependency-graph.yaml

---------

Co-authored-by: gu-dependency-graph-integrator[bot] <156913822+gu-dependency-graph-integrator[bot]@users.noreply.github.com>
Co-authored-by: Daniel Clifton <[email protected]>
  • Loading branch information
1 parent 5b789de commit 8d15985
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 7 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/sbt-dependency-graph.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Update Dependency Graph for sbt
on:
push:
branches:
- main
workflow_dispatch:
jobs:
dependency-graph:
runs-on: ubuntu-latest
steps:
- name: Checkout branch
id: checkout
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: Install Java
id: java
uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73 # v4.2.0
with:
distribution: corretto
java-version: 17
- name: Install sbt
id: sbt
uses: sbt/setup-sbt@8a071aa780c993c7a204c785d04d3e8eb64ef272 # v1.1.0
- name: Submit dependencies
id: submit
uses: scalacenter/sbt-dependency-submission@64084844d2b0a9b6c3765f33acde2fbe3f5ae7d3 # v3.1.0
- name: Log snapshot for user validation
id: validate
run: cat ${{ steps.submit.outputs.snapshot-json-path }} | jq
permissions:
contents: write
10 changes: 3 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: actions/setup-java@v3
with:
distribution: corretto
java-version: 11
cache: sbt

- uses: guardian/setup-scala@v1

- name: Test model
run: sbt "clean" "project scalaApiModels" "set isSnapshot := false" "compile"
run: sbt "clean" "project scalaApiModels" "set isSnapshot := false" "compile"

0 comments on commit 8d15985

Please sign in to comment.