Skip to content

Commit b0d7ba1

Browse files
Merge pull request #1640 from gooddata/snapshot-master-8ca8648f-to-rel/dev
[bot] Merge master/8ca8648f into rel/dev
2 parents 2354ec1 + 8ca8648 commit b0d7ba1

2 files changed

Lines changed: 42 additions & 29 deletions

File tree

‎.fossa.yml‎

Lines changed: 0 additions & 23 deletions
This file was deleted.

‎.github/workflows/fossa.yaml‎

Lines changed: 42 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,65 @@ on:
55
workflow_dispatch:
66
inputs:
77
branch:
8-
description: Branch label to attach to the FOSSA scan.
8+
description: Override the FOSSA branch label (defaults to the dispatched git ref).
99
required: false
10-
default: master
10+
default: ""
1111

1212
concurrency:
1313
group: fossa-${{ github.workflow }}-${{ github.ref }}
1414
cancel-in-progress: true
1515

16+
# Each PyPI artifact is scanned as its own FOSSA project so license inventory,
17+
# policy gates, and attribution reports match what is actually shipped. The
18+
# FOSSA "branch" axis is left to its intended purpose (track license drift
19+
# across git branches over time).
1620
jobs:
1721
fossa:
18-
name: FOSSA scan
22+
name: FOSSA ${{ matrix.package.project }}
1923
runs-on:
2024
group: infra1-runners-arc
2125
labels: runners-small
2226
permissions:
2327
contents: read
28+
strategy:
29+
fail-fast: false
30+
matrix:
31+
package:
32+
- { path: packages/gooddata-sdk, project: gooddata-sdk }
33+
- { path: packages/gooddata-pandas, project: gooddata-pandas }
34+
- { path: packages/gooddata-dbt, project: gooddata-dbt }
35+
- { path: packages/gooddata-fdw, project: gooddata-fdw }
36+
- { path: packages/gooddata-flight-server, project: gooddata-flight-server }
37+
- { path: packages/gooddata-flexconnect, project: gooddata-flexconnect }
38+
- { path: packages/gooddata-pipelines, project: gooddata-pipelines }
39+
- { path: gooddata-api-client, project: gooddata-api-client }
2440
steps:
2541
- name: Checkout the code
2642
uses: actions/checkout@v6
2743
with:
2844
fetch-depth: 0
2945

30-
- name: Check that .fossa.yml exists
46+
- name: Scope .fossa.yml to ${{ matrix.package.project }}
3147
shell: bash
3248
run: |
33-
[ -f ./.fossa.yml ] || { echo "Missing .fossa.yml in repo root; FOSSA needs it for project id." >&2; exit 1; }
49+
# Target the existing "1.0" release of the gooddata-python-sdk
50+
# release group. FOSSA does not auto-create releases during analyze,
51+
# so the release must already exist; "1.0" is the one currently in
52+
# app.fossa.com. (TODO: create a per-version release before switching
53+
# the release label back to the workspace version.)
54+
cat > .fossa.yml <<EOF
55+
version: 3
56+
project:
57+
id: ${{ matrix.package.project }}
58+
releaseGroup:
59+
name: gooddata-python-sdk
60+
release: "1.0"
61+
telemetry:
62+
scope: 'off'
63+
paths:
64+
only:
65+
- ${{ matrix.package.path }}
66+
EOF
3467
3568
- name: Workaround for "no targets found" error
3669
shell: bash
@@ -41,8 +74,11 @@ jobs:
4174
uses: fossas/fossa-action@v1.9.0
4275
with:
4376
api-key: ${{ secrets.FOSSA_API_KEY }}
44-
branch: ${{ inputs.branch }}
77+
branch: ${{ inputs.branch != '' && inputs.branch || github.ref_name }}
4578

79+
# `fossa test` resolves the revision by VCS hash and does not accept a
80+
# --branch flag (only `fossa analyze` does), so the branch input is
81+
# intentionally omitted here to avoid an "Invalid option `--branch'" error.
4682
- name: Run FOSSA test (policy gate)
4783
uses: fossas/fossa-action@v1.9.0
4884
with:

0 commit comments

Comments
 (0)