2024-01-27 23:32:42 +01:00
|
|
|
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
|
|
|
|
|
2020-12-17 20:48:24 +02:00
|
|
|
name: FOSSA
|
2023-01-03 12:25:19 +01:00
|
|
|
|
2023-06-30 13:44:57 +02:00
|
|
|
permissions: {}
|
|
|
|
|
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
|
|
|
|
|
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
|
2024-09-26 07:36:19 +00:00
|
|
|
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
|
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-09-27 10:24:27 +02:00
|
|
|
- name: Setup caches
|
|
|
|
uses: ./.github/actions/setup-caches
|
|
|
|
timeout-minutes: 5
|
|
|
|
continue-on-error: true
|
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
|
2023-08-30 22:44:51 +02:00
|
|
|
timeout-minutes: 10
|
2023-12-07 08:42:56 +01:00
|
|
|
with:
|
|
|
|
free-disk-space: false
|
2023-01-05 16:52:52 +01:00
|
|
|
- name: Run FOSSA analysis
|
2023-01-06 22:26:21 +01:00
|
|
|
if: steps.checksecret.outputs.result == 'true'
|
2024-08-08 06:46:35 +00:00
|
|
|
uses: fossas/fossa-action@09bcf127dc0ccb4b5a023f6f906728878e8610ba # v1.4.0
|
2023-01-06 22:26:21 +01:00
|
|
|
with:
|
|
|
|
api-key: ${{ secrets.FOSSA_API_KEY }}
|