Skip to content

Commit

Permalink
Merge pull request #299 from guardian/sbt-dependency-graph-b55bebee5e…
Browse files Browse the repository at this point in the history
…e5f351

Submit sbt dependencies to GitHub for vulnerability monitoring
  • Loading branch information
sophie-macmillan authored Jan 15, 2025
2 parents 9c5f2a5 + 4f35375 commit 853e369
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 23 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@ jobs:
# Checkout the branch
- uses: actions/checkout@v3
# Java is needed for the Scala Play app
- uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'corretto'
cache: 'sbt'
- uses: guardian/setup-scala@v1
# Build CDK and Play (in sequence)
- run: sbt clean compile test assembly
# Fetch AWS credentials, allowing us to upload to Riff-Raff (well, S3)
Expand Down
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
18 changes: 0 additions & 18 deletions .github/workflows/snyk.yml

This file was deleted.

1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
java corretto-11.0.25.9.1

0 comments on commit 853e369

Please sign in to comment.