Skip to content

Commit

Permalink
Fossa validation (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
patriknw committed Sep 19, 2022
1 parent 896760e commit 34b040a
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/fossa.yml
@@ -0,0 +1,33 @@
name: Dependency License Scanning

on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0' # At 00:00 on Sunday

jobs:
fossa:
name: Fossa
runs-on: ubuntu-latest
if: github.repository == 'akka/akka-persistence-r2dbc'
steps:
- name: Checkout
uses: actions/checkout@v2
with:
# we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves
fetch-depth: 0

- name: Set up JDK 11
uses: olafurpg/setup-scala@v13
with:
java-version: adopt@1.11

- name: Cache Coursier cache
uses: coursier/cache-action@v6.2

- name: FOSSA policy check
run: |-
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/spectrometer/master/install.sh | bash
fossa analyze && fossa test
env:
FOSSA_API_KEY: "${{secrets.FOSSA_API_KEY}}"

0 comments on commit 34b040a

Please sign in to comment.