2024-01-27 22:32:42 +00:00
|
|
|
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
|
|
|
|
|
2020-12-17 18:48:24 +00:00
|
|
|
name: FOSSA
|
2023-01-03 11:25:19 +00:00
|
|
|
|
2023-06-30 11:44:57 +00:00
|
|
|
permissions: {}
|
|
|
|
|
2020-12-17 18:48:24 +00:00
|
|
|
on:
|
|
|
|
push:
|
2023-01-05 09:37:41 +00:00
|
|
|
branches:
|
|
|
|
- main
|
2020-12-17 18:48:24 +00:00
|
|
|
|
2023-01-06 15:24:55 +00:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2020-12-17 18:48:24 +00:00
|
|
|
jobs:
|
2023-01-06 21:26:21 +00:00
|
|
|
fossa-scan:
|
2020-12-17 18:48:24 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-09-02 08:55:41 +00:00
|
|
|
- name: Checkout
|
2024-05-23 10:33:32 +00:00
|
|
|
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
2023-01-06 21:26:21 +00:00
|
|
|
- name: Check secret
|
|
|
|
id: checksecret
|
|
|
|
uses: ./.github/actions/is-defined
|
|
|
|
with:
|
|
|
|
value: ${{ secrets.FOSSA_API_KEY }}
|
2023-09-27 08:24:27 +00:00
|
|
|
- name: Setup caches
|
|
|
|
uses: ./.github/actions/setup-caches
|
|
|
|
timeout-minutes: 5
|
|
|
|
continue-on-error: true
|
2023-01-05 15:52:52 +00:00
|
|
|
- name: Setup build env
|
2023-01-06 21:26:21 +00:00
|
|
|
if: steps.checksecret.outputs.result == 'true'
|
2023-01-05 15:52:52 +00:00
|
|
|
uses: ./.github/actions/setup-build-env
|
2023-08-30 20:44:51 +00:00
|
|
|
timeout-minutes: 10
|
2023-12-07 07:42:56 +00:00
|
|
|
with:
|
|
|
|
free-disk-space: false
|
2023-01-05 15:52:52 +00:00
|
|
|
- name: Run FOSSA analysis
|
2023-01-06 21:26:21 +00:00
|
|
|
if: steps.checksecret.outputs.result == 'true'
|
2024-02-16 07:43:13 +00:00
|
|
|
uses: fossas/fossa-action@47ef11b1e1e3812e88dae436ccbd2d0cbd1adab0 # v1.3.3
|
2023-01-06 21:26:21 +00:00
|
|
|
with:
|
|
|
|
api-key: ${{ secrets.FOSSA_API_KEY }}
|