1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 05:40:11 +01:00

Fix url handling
Some checks failed
Go / build (push) Has been cancelled
Go / run_modver (push) Has been cancelled

Check if relative URL is absolute.
This commit is contained in:
koplas 2025-07-17 12:04:04 +01:00
parent ae184eb189
commit 164d995aaf
No known key found for this signature in database
2 changed files with 7 additions and 2 deletions

View file

@ -636,6 +636,7 @@ func (p *processor) integrity(
if err != nil {
return err
}
b.Path = ""
client := p.httpClient()
var data bytes.Buffer
@ -953,7 +954,7 @@ func (p *processor) checkIndex(base string, mask whereType) error {
continue
}
files = append(files, csaf.DirectoryAdvisoryFile{Path: u})
files = append(files, csaf.DirectoryAdvisoryFile{Path: bu.JoinPath(u).String()})
}
return files, scanner.Err()
}()
@ -1036,7 +1037,7 @@ func (p *processor) checkChanges(base string, mask whereType) error {
path := r[pathColumn]
times, files = append(times, t),
append(files, csaf.DirectoryAdvisoryFile{Path: path})
append(files, csaf.DirectoryAdvisoryFile{Path: bu.JoinPath(path).String()})
p.timesChanges[path] = t
}
return times, files, nil