-
Notifications
You must be signed in to change notification settings - Fork 67
50 lines (43 loc) · 1.25 KB
/
fossa.yaml
File metadata and controls
50 lines (43 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# (C) 2026 GoodData Corporation
name: FOSSA scan
on:
workflow_dispatch:
inputs:
branch:
description: Branch label to attach to the FOSSA scan.
required: false
default: master
concurrency:
group: fossa-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
fossa:
name: FOSSA scan
runs-on:
group: infra1-runners-arc
labels: runners-small
permissions:
contents: read
steps:
- name: Checkout the code
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Check that .fossa.yml exists
shell: bash
run: |
[ -f ./.fossa.yml ] || { echo "Missing .fossa.yml in repo root; FOSSA needs it for project id." >&2; exit 1; }
- name: Workaround for "no targets found" error
shell: bash
run: |
[ -f ./requirements.txt ] || touch ./requirements.txt
- name: Run FOSSA analyze
uses: fossas/fossa-action@v1.9.0
with:
api-key: ${{ secrets.FOSSA_API_KEY }}
branch: ${{ inputs.branch }}
- name: Run FOSSA test (policy gate)
uses: fossas/fossa-action@v1.9.0
with:
api-key: ${{ secrets.FOSSA_API_KEY }}
run-tests: true