Skip to content

Commit 2fbefbf

Browse files
committed
chore: pass processed files out of plugin
1 parent c91d8b1 commit 2fbefbf

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

internal/uv/uv.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ import (
88
"github.com/rs/zerolog"
99
)
1010

11-
const UvLockFileName = "uv.lock"
11+
const (
12+
UvLockFileName = "uv.lock"
13+
requirementsTxtFileName = "requirements.txt"
14+
pyprojectTomlFileName = "pyproject.toml"
15+
)
1216

1317
// This is copied from cli-extension-os-flows. We could export from here via GAF config and re-use if this duplication
1418
// becomes a problem, but this duplication is only temporary.

internal/uv/uvclient.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,12 @@ func (c client) ExportSBOM(inputDir string) (*scaplugin.Finding, error) {
5353
}
5454

5555
return &scaplugin.Finding{
56-
Sbom: output,
57-
FilesProcessed: []string{},
58-
TargetFile: path.Join(inputDir, UvLockFileName),
56+
Sbom: output,
57+
FilesProcessed: []string{
58+
path.Join(inputDir, requirementsTxtFileName),
59+
path.Join(inputDir, pyprojectTomlFileName),
60+
},
61+
TargetFile: path.Join(inputDir, UvLockFileName),
5962
}, nil
6063
}
6164

0 commit comments

Comments
 (0)