Skip to content

Commit 998ac3f

Browse files
committed
SBOM hub no longer exists
Solution: Remove all support for the SBOM hub Fixes AB#7166 Signed-off-by: Paul Hewlett <[email protected]>
1 parent b5022f4 commit 998ac3f

28 files changed

+56
-2017
lines changed

.github/workflows/python-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ jobs:
3939
python3 -m pip install setuptools wheel
4040
- name: Build and publish
4141
env:
42-
TWINE_USERNAME: ${{ secrets.PYPI_ALL_USERNAME }}
43-
TWINE_PASSWORD: ${{ secrets.PYPI_ALL_PASSWORD }}
42+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
43+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
4444
run: |
4545
rm -f archivist/about.py
4646
./scripts/version.sh

archivist/applications.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def list(
204204
def regenerate(self, identity: str) -> Application:
205205
"""Regenerate secret
206206
207-
Makes an SBOM public.
207+
Regenerate secret for app registration
208208
209209
Args:
210210
identity (str): identity of application

archivist/archivist.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@
6262
from .locations import _LocationsClient
6363
from .retry429 import retry_429
6464
from .runner import _Runner
65-
from .sboms import _SBOMSClient
6665
from .subjects import _SubjectsClient
6766
from .tenancies import _TenanciesClient
6867

@@ -98,7 +97,6 @@ class Archivist(ArchivistPublic): # pylint: disable=too-many-instance-attribute
9897
"events": _EventsRestricted,
9998
"locations": _LocationsClient,
10099
"runner": _Runner,
101-
"sboms": _SBOMSClient,
102100
"subjects": _SubjectsClient,
103101
"tenancies": _TenanciesClient,
104102
}
@@ -145,7 +143,6 @@ def __init__(
145143
self.events: _EventsRestricted
146144
self.locations: _LocationsClient
147145
self.runner: _Runner
148-
self.sboms: _SBOMSClient
149146
self.subjects: _SubjectsClient
150147
self.tenancies: _TenanciesClient
151148

archivist/constants.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,6 @@
5757
LOCATIONS_SUBPATH = "v2"
5858
LOCATIONS_LABEL = "locations"
5959

60-
SBOMS_SUBPATH = "v1"
61-
SBOMS_LABEL = "sboms"
62-
SBOMS_WILDCARD = "-/metadata"
63-
SBOMS_METADATA = "metadata"
64-
SBOMS_PUBLISH = "publish"
65-
SBOMS_WITHDRAW = "withdraw"
6660
SBOM_PACKAGE = "Software Package"
6761
SBOM_RELEASE = "Software Package Release"
6862

archivist/errors.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,6 @@ class ArchivistUnconfirmedError(ArchivistError):
2828
"""asset or event failed to confirm after fixed timeout"""
2929

3030

31-
class ArchivistUnpublishedError(ArchivistError):
32-
"""Sbom failed to publish after fixed timeout"""
33-
34-
35-
class ArchivistUnwithdrawnError(ArchivistError):
36-
"""Sbom failed to be withdrawn after fixed timeout"""
37-
38-
3931
class ArchivistInvalidOperationError(ArchivistError):
4032
"""Runner Operation is invalid"""
4133

archivist/events.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
)
4040
from .dictmerge import _deepmerge
4141
from .errors import ArchivistBadFieldError, ArchivistNotFoundError
42+
from .sboms import sboms_parse
4243

4344
LOGGER = getLogger(__name__)
4445

@@ -351,18 +352,12 @@ def create_from_data(
351352
)
352353
event_attributes["arc_location_identity"] = loc["identity"]
353354

354-
sbom = data.pop("sbom", None)
355-
if sbom is not None:
356-
sbom_result = self._archivist.sboms.create(sbom)
357-
for k, v in sbom_result.items():
358-
event_attributes[f"sbom_{k}"] = v
359-
360355
attachments = data.pop("attachments", None)
361356
if attachments is not None:
362357
for a in attachments:
363358
result = self._archivist.attachments.create(a)
364359
if a.get("type") == SBOM_RELEASE:
365-
sbom_result = self._archivist.sboms.parse(a)
360+
sbom_result = sboms_parse(a)
366361
for k, v in sbom_result.items():
367362
event_attributes[f"sbom_{k}"] = v
368363

archivist/publisher.py

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

archivist/sbommetadata.py

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

0 commit comments

Comments
 (0)