fossa_get_project_associations
Fetch a FOSSA project's labels and release groups, plus last published timestamp on request. Returns per-section data/errors, so empty results are not mistaken for failures.
Instructions
List a project's labels, its release-group memberships, and the timestamp of the last update published for it.
Read-only. Each section is one FOSSA call. By default this fetches "labels"
and "release_groups"; name "last_published" in sections to fetch that too.
It comes back as a bare ISO timestamp string.
Sections are independent: one failing section does not discard the others.
Every section that answered is under data, keyed by section name, and
every section FOSSA rejected is under errors with its status code and
message. The two keys never overlap, so a section that came back empty
(present in data as [] or {}) is distinct from one that failed
(absent from data, present in errors). Check errors before concluding
a project has no labels or no release groups.
"last_published" is not fetched by default because FOSSA answers it with
404 NotFoundError: Last published date not known for a project that has
never had an update published, which is the common case. Treat that
particular 404 as "nothing published yet" rather than as a broken call —
FOSSA's own message says the date is not known, not that the project or the
endpoint is missing. Any other status under errors is a real failure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sections | No | ||
| project_locator | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||