Skip to content

Baseline FOSSA Scan - Do Not Merge #1

Baseline FOSSA Scan - Do Not Merge

Baseline FOSSA Scan - Do Not Merge #1

name: FOSSA CLI Analysis
on:
push:
branches: [ $default-branch ]
pull_request:
branches: [ $default-branch ]
workflow_dispatch:
jobs:
fossa:
runs-on: ubuntu-latest
env:
FOSSA_API_KEY: ${{secrets.FOSSA_API_KEY}}
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Run fossa
run: |
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash
output="$(fossa list-targets --format=text)"
if [[ -n $output ]]
then
printf -- "%s\n" "$output"
fossa analyze
else
printf -- "Fossa did not find any analysis targets.\n"
fi