README
¶
Dependency-Track fan-out Plugin
This plugin implements sending cycloneDX Software Bill of Materials (SBOM) to Dependency-Track.
See https://docs.chainloop.dev/guides/dependency-track/
Registration Input Schema
Field | Type | Required | Description |
---|---|---|---|
allowAutoCreate | boolean | no | Support of creating projects on demand |
apiKey | string | yes | The API key to use for authentication |
instanceURI | string (uri) | yes | The URL of the Dependency-Track instance |
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/chainloop-dev/chainloop/app/controlplane/plugins/core/dependency-track/v1/registration-request",
"properties": {
"instanceURI": {
"type": "string",
"format": "uri",
"description": "The URL of the Dependency-Track instance"
},
"apiKey": {
"type": "string",
"description": "The API key to use for authentication"
},
"allowAutoCreate": {
"type": "boolean",
"description": "Support of creating projects on demand"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"instanceURI",
"apiKey"
]
}
Attachment Input Schema
Field | Type | Required | Description |
---|---|---|---|
projectID | string | no | The ID of the existing project to send the SBOMs to |
projectName | string | no | The name of the project to create and send the SBOMs to |
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/chainloop-dev/chainloop/app/controlplane/plugins/core/dependency-track/v1/attachment-request",
"oneOf": [
{
"required": [
"projectID"
],
"title": "projectID"
},
{
"required": [
"projectName"
],
"title": "projectName"
}
],
"properties": {
"projectID": {
"type": "string",
"minLength": 1,
"description": "The ID of the existing project to send the SBOMs to"
},
"projectName": {
"type": "string",
"minLength": 1,
"description": "The name of the project to create and send the SBOMs to"
}
},
"additionalProperties": false,
"type": "object"
}
Documentation
¶
Index ¶
- func New(l log.Logger) (sdk.FanOut, error)
- type DependencyTrack
- func (i *DependencyTrack) Attach(ctx context.Context, req *sdk.AttachmentRequest) (*sdk.AttachmentResponse, error)
- func (i *DependencyTrack) Execute(ctx context.Context, req *sdk.ExecutionRequest) error
- func (i *DependencyTrack) Register(ctx context.Context, req *sdk.RegistrationRequest) (*sdk.RegistrationResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DependencyTrack ¶
type DependencyTrack struct {
*sdk.FanOutIntegration
}
func (*DependencyTrack) Attach ¶
func (i *DependencyTrack) Attach(ctx context.Context, req *sdk.AttachmentRequest) (*sdk.AttachmentResponse, error)
Validate and return what configuration attachment to persist
Click to show internal directories.
Click to hide internal directories.