Skip to content

Commit ea6fc15

Browse files
committed
chore: pass processed files out of plugin
1 parent e5072da commit ea6fc15

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-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: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"encoding/json"
55
"fmt"
66
"os/exec"
7+
"path"
78
"regexp"
89
"strconv"
910
"strings"
@@ -52,9 +53,12 @@ func (c client) ExportSBOM(inputDir string) (*scaplugin.Finding, error) {
5253
}
5354

5455
return &scaplugin.Finding{
55-
Sbom: output,
56-
FilesProcessed: []string{},
57-
TargetFile: UvLockFileName,
56+
Sbom: output,
57+
FilesProcessed: []string{
58+
path.Join(inputDir, requirementsTxtFileName),
59+
path.Join(inputDir, pyprojectTomlFileName),
60+
},
61+
TargetFile: UvLockFileName,
5862
}, nil
5963
}
6064

0 commit comments

Comments
 (0)