-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
connector-insights: use SPDX SBOM generated on publish #44493
connector-insights: use SPDX SBOM generated on publish #44493
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @alafanechere and the rest of your teammates on Graphite |
dc1fd81
to
b596d8c
Compare
b596d8c
to
89607b3
Compare
Co-authored-by: Natik Gadzhi <natik@respawn.io>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that's great! I messed up a comment suggestion indentation, let's fix it and go!
Left a couple nits.
@@ -234,8 +240,7 @@ async def generate_insights_for_connector( | |||
""" | |||
logger = logging.getLogger(__name__) | |||
insights_file = FileToPersist("insights.json") | |||
sbom_file = FileToPersist("sbom.json") | |||
files_to_persist = [insights_file, sbom_file] | |||
files_to_persist = [insights_file] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: if there's just one file, do we even need this list in a variable?
@@ -6,6 +6,8 @@ | |||
from pathlib import Path | |||
from typing import TYPE_CHECKING | |||
|
|||
import requests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait a second, how did that work before? Are requests used there or no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, I don't think requests
are used ?
|
||
import requests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import requests |
What
Closes https://github.com/airbytehq/airbyte-internal-issues/issues/9343
SBOMs are not generated on publish and their URL is exposed in the connector registry.
We should fetch already generated SBOM in insights generation instead of generating SBOM at execution time.
How
connectors-insights
sbom_url
property on theConnector
class