github.com/goharbor/harbor/src v0.0.0-20261119031828-67748c71ef12
legitimate harbor source code
Backtick shell command-substitution syntaxBasename is uppercase README.md
SHA-2569f0b474a1c1269bbd09068852b06204e216e04c0d331facaec79e66de6d07dcd
Evidence
11:48… , either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package main
16
17import (
18 "errors"
19 "net/http"
20 "os"
21 "strings"
22 "time"
23
24 _ "github.com/jackc/pgx/v5/stdlib" // registry pgx driver
25 "github.com/prometheus/client_golang/prometheus"
26 "github.com/spf13/viper"
27
28 "github.com/goharbor/harbor/src/common/dao"
29 commonthttp "github.com/goharbor/harbor/src/common/http"
30 "github.com/goharbor/harbor/src/common/models"
31 "github.com/goharbor/harbor/src/lib"
32 "github.com/goharbor/harbor/src/lib/log"
33 "github.com/goharbor/harbor/src/pkg/exporter"
34)
35
⋯6 lines
66:42… host"),
67 HarborPort: viper.GetInt("service.port"),
68 Client: &http.Client{
69 Transport: commonthttp.GetHTTPTransport(),
70 },
⋯4 lines
11:48… , either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package main
16
17import (
18 "os"
19 "strconv"
20
21 "github.com/goharbor/harbor/src/common/dao"
22 "github.com/goharbor/harbor/src/common/models"
23 "github.com/goharbor/harbor/src/lib/log"
24 "github.com/goharbor/harbor/src/migration"
25)
26
⋯9 lines
36
37func main() {
38 p, _ := strconv.Atoi(getAttr("POSTGRESQL_PORT"))
39 db := &models.Database{
40 Type: "postgresql",
41 PostGreSQL: &models.PostGreSQL{
42 Host: g …
63:26… . The data schema in DB is now update to date.")
64}
65
66func getAttr(k string) string {
67 v := os.Getenv(k)
68 if len(v) > 0 {
69 return v
70 }
71 return defaultAttrs[k]
72}
11:48… , either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package base
16
17import (
18 "io"
19 "strings"
20 "testing"
21
22 v1 "github.com/opencontainers/image-spec/specs-go/v1"
23 "github.com/stretchr/testify/suite"
24
25 "github.com/goharbor/harbor/src/pkg/artifact"
26 "github.com/goharbor/harbor/src/testing/mock"
27 "github.com/goharbor/harbor/src/testing/pkg/registry"
28)
29
⋯4 lines
Showing the top 5 files — 6 more files (48 regions) not shown.
No evidence locations were recorded for this file. Raw result