diff --git a/src/api/types.ts b/src/api/types.ts index ac4dbf0..29d7679 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -30,6 +30,14 @@ export interface V2RPMs { nvras: string[]; } +export interface V2Source { + name: string; + url: string; + vendor: string; + license: string; + licenseUrl: string; +} + export interface V2Advisory { id?: number; publishedAt?: string; @@ -48,6 +56,7 @@ export interface V2Advisory { rpms?: Record; rebootSuggested?: boolean; buildReferences?: string[]; + source?: V2Source | null; } export interface V2AdvisoryListResponse { diff --git a/src/components/Root.tsx b/src/components/Root.tsx index f014eef..9397afc 100644 --- a/src/components/Root.tsx +++ b/src/components/Root.tsx @@ -110,6 +110,17 @@ export const Root = () => { RSS + + Advisory content derived from Red Hat, used under{" "} + + CC BY 4.0 + + , with modifications. + ); diff --git a/src/components/ShowErrata.tsx b/src/components/ShowErrata.tsx index e2b0c04..e4c5f4b 100644 --- a/src/components/ShowErrata.tsx +++ b/src/components/ShowErrata.tsx @@ -125,6 +125,29 @@ export const ShowErrata = () => { {errata.synopsis} + {errata.source && ( + + Source:{" "} + + {errata.source.vendor} {errata.source.name} + + , used under{" "} + + {errata.source.license} + + , with modifications. + + )}