2020-12-17 20:48:24 +02:00
|
|
|
name: FOSSA
|
2023-01-03 12:25:19 +01:00
|
|
|
|
2020-12-17 20:48:24 +02:00
|
|
|
on:
|
|
|
|
push:
|
2023-01-05 10:37:41 +01:00
|
|
|
branches:
|
|
|
|
- main
|
2020-12-17 20:48:24 +02:00
|
|
|
|
2023-01-06 16:24:55 +01:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2023-01-06 11:07:06 +01:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2020-12-17 20:48:24 +02:00
|
|
|
jobs:
|
2023-01-06 22:26:21 +01:00
|
|
|
fossa-scan:
|
2020-12-17 20:48:24 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-09-02 10:55:41 +02:00
|
|
|
- name: Checkout
|
2023-04-14 07:52:25 +00:00
|
|
|
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
|
2023-01-06 22:26:21 +01:00
|
|
|
- name: Check secret
|
|
|
|
id: checksecret
|
|
|
|
uses: ./.github/actions/is-defined
|
|
|
|
with:
|
|
|
|
value: ${{ secrets.FOSSA_API_KEY }}
|
2023-01-05 16:52:52 +01:00
|
|
|
- name: Setup build env
|
2023-01-06 22:26:21 +01:00
|
|
|
if: steps.checksecret.outputs.result == 'true'
|
2023-01-05 16:52:52 +01:00
|
|
|
uses: ./.github/actions/setup-build-env
|
|
|
|
- name: Run FOSSA analysis
|
2023-01-06 22:26:21 +01:00
|
|
|
if: steps.checksecret.outputs.result == 'true'
|
|
|
|
uses: fossas/fossa-action@f61a4c0c263690f2ddb54b9822a719c25a7b608f # v1.3.1
|
|
|
|
with:
|
|
|
|
api-key: ${{ secrets.FOSSA_API_KEY }}
|