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

upgrade dependencies, including go (#695)

* change go.mod as first step towards go 1.25

  raise minium version of go compatiblity to 1.24.9
  and toolchain to be used to 1.25.3

* upgrade .github/workflows and documentation

  * update all .github/workflows/ to use the latest version of
    actions and the go versions accordingly.
    (Only some github actions use a floating tag for the major version.)
  * reduce places where the go versions are hardcoded:
      * refEr to docs/Development.md from README.md
      * use `go.mod` from itest.yml.

* fix itest.yml: checkout before refer to go.mod

* improve code cleanness: use format string w error

  and thus makes newer go test versions happy

* update go dependencies

* cleanup some dependencies with go mod tidy

* fix .github/workflows action versions

* fix go action versions
This commit is contained in:
Bernhard E. Reiter 2025-10-27 10:35:38 +01:00 committed by GitHub
parent c6bad42c24
commit 46118544be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 58 additions and 56 deletions

View file

@ -254,14 +254,12 @@ func (p *processor) run(domains []string) (*Report, error) {
if !p.checkProviderMetadata(d) {
// We need to fail the domain if the PMD cannot be parsed.
p.badProviderMetadata.use()
message := fmt.Sprintf("Could not parse the Provider-Metadata.json of: %s", d)
p.badProviderMetadata.error(message)
p.badProviderMetadata.error("Could not parse the Provider-Metadata.json of: %s", d)
}
if err := p.checkDomain(d); err != nil {
p.badProviderMetadata.use()
message := fmt.Sprintf("Failed to find valid provider-metadata.json for domain %s: %v. ", d, err)
p.badProviderMetadata.error(message)
p.badProviderMetadata.error("Failed to find valid provider-metadata.json for domain %s: %v. ", d, err)
}
domain := &Domain{Name: d}