Skip to content

Commit 24c909c

Browse files
committed
fix path for embedded fs
1 parent b516394 commit 24c909c

File tree

1 file changed

+1
-1
lines changed
  • pkg/cmd/update-tls-artifacts/generate-owners/tlsmetadata

1 file changed

+1
-1
lines changed

pkg/cmd/update-tls-artifacts/generate-owners/tlsmetadata/helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func NewRequirementResult(name string, statusJSON, statusMarkdown, violationJSON
4949

5050
// TODO this might be generic for "does it have this annotation values"
5151
func (r requirementsResult) HaveViolationsRegressed(allViolationsFS embed.FS) ([]string, bool, error) {
52-
existingViolationJSONBytes, err := allViolationsFS.ReadFile(filepath.Join(r.GetName(), fmt.Sprintf("%s-violations.json", r.GetName())))
52+
existingViolationJSONBytes, err := allViolationsFS.ReadFile(filepath.Join("violations", r.GetName(), fmt.Sprintf("%s-violations.json", r.GetName())))
5353
if err != nil {
5454
return nil, false, fmt.Errorf("error reading existing content for %v: %w", r.GetName(), err)
5555
}

0 commit comments

Comments
 (0)