Skip to content

Commit b67f41e

Browse files
committed
ci: add FOSSA license scan workflow
Adds a self-contained workflow_dispatch GitHub Actions workflow that runs FOSSA analyze + test against the repo, replacing the manual Jenkins-based scan. Token comes from the FOSSA_API_KEY org secret; the repo still needs to be added to that secret's repos allowlist in terraform-github (separate PR by infra) before the first dispatch will authenticate. The job runs on the infra1-runners-arc / runners-small ARC group used by the rest of the repo's workflows (pre-merge, staging-tests, etc.) — the runners are accessible from this public repo even though the reusable fossa workflow at gooddata/github-actions isn't, hence this self-contained copy. Permissions are read-only. Actions are pinned by version tag (actions/checkout@v6, fossas/fossa-action@v1.9.0) to match the repo convention. The .fossa.yml is scoped via paths.only to the seven published gooddata-* workspace packages plus the generated gooddata-api-client. Phase 0 local verification with fossa-cli 3.17.5 confirmed all declared deps across these targets are picked up (pdm strategy for each pyproject.toml, setuptools for gooddata-api-client). tests-support and scripts/ are intentionally excluded as internal helpers. The branch input defaults to master so dispatches without an explicit override attach the scan to the master branch in the FOSSA dashboard. JIRA: TRIVIAL risk: nonprod
1 parent 88138a3 commit b67f41e

2 files changed

Lines changed: 64 additions & 9 deletions

File tree

.fossa.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,17 @@ project:
77
telemetry:
88
scope: 'off'
99

10-
# We need to specify it per-each package. See fossa_* branches.
11-
# targets:
12-
# only:
13-
# - type: pipenv
14-
# path: path-here
15-
#
16-
# paths:
17-
# only:
18-
# - path-here
10+
# Scope the scan to the published gooddata-* workspace packages + the
11+
# generated gooddata-api-client. Each pyproject.toml is scanned independently
12+
# (FOSSA's pdm strategy reports declared deps); the gooddata-api-client setup.py
13+
# is read by setuptools. Internal helpers (tests-support, scripts) are excluded.
14+
paths:
15+
only:
16+
- packages/gooddata-sdk
17+
- packages/gooddata-pandas
18+
- packages/gooddata-dbt
19+
- packages/gooddata-fdw
20+
- packages/gooddata-flight-server
21+
- packages/gooddata-flexconnect
22+
- packages/gooddata-pipelines
23+
- gooddata-api-client

.github/workflows/fossa.yaml

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

0 commit comments

Comments
 (0)