Skip to content

Commit

Permalink
Merge pull request #181 from JingChen23/fix-beego-security
Browse files Browse the repository at this point in the history
say goodbye to beego v1 because it has security issue
  • Loading branch information
JingChen23 authored Feb 24, 2023
2 parents 4eed4ca + c3ab0b1 commit 6dd414d
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 53 deletions.
3 changes: 2 additions & 1 deletion src/frontend/src/app/service/harbor-model-type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ export interface SecretModel {
readonly kind: 'Secret',
metadata: {
name: string,
namespace: string
namespace: string,
creationTimestamp: string
},
readonly type: 'Opaque'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class RiskReportViewComponent implements OnInit, AfterViewInit {
dgLoading = false
public showDetailFlag = false
echartsLoading = true
riskList = []
riskList: any[] = []
constructor(
private assessmentService: AssessmentService,
private policyService: PolicyService
Expand Down
3 changes: 2 additions & 1 deletion src/frontend/src/app/view/setting/setting.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ export class SettingComponent implements OnInit, OnDestroy {
kind: 'Secret',
metadata: {
name: this.secretForm.get('secret_name')?.value,
namespace: this.secretForm.get('secret_namespace')?.value
namespace: this.secretForm.get('secret_namespace')?.value,
creationTimestamp: ''
},
type: 'Opaque'
}
Expand Down
12 changes: 7 additions & 5 deletions src/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ require (
github.com/go-openapi/validate v0.22.0
github.com/goark/go-cvss v1.3.0
github.com/goharbor/go-client v0.25.0
github.com/goharbor/harbor/src v0.0.0-20221115123844-ea27197a8227
github.com/goharbor/harbor/src v0.0.0-20230223115750-10c54c0d8222
github.com/gomodule/redigo v2.0.0+incompatible
github.com/onsi/ginkgo v1.16.5
github.com/onsi/gomega v1.24.1
Expand Down Expand Up @@ -44,7 +44,7 @@ require (
github.com/aws/aws-sdk-go-v2 v1.16.16 // indirect
github.com/aws/aws-sdk-go-v2/service/securityhub v1.23.5 // indirect
github.com/aws/smithy-go v1.13.3 // indirect
github.com/beego/beego v1.12.11 // indirect
github.com/beego/beego/v2 v2.0.6 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/cenkalti/backoff/v4 v4.1.2 // indirect
github.com/cespare/xxhash/v2 v2.1.2 // indirect
Expand Down Expand Up @@ -95,6 +95,7 @@ require (
github.com/magiconair/properties v1.8.6 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-isatty v0.0.16 // indirect
github.com/mattn/go-sqlite3 v2.0.3+incompatible // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
Expand All @@ -113,6 +114,7 @@ require (
github.com/prometheus/procfs v0.8.0 // indirect
github.com/robfig/cron v1.0.0 // indirect
github.com/robfig/cron/v3 v3.0.0 // indirect
github.com/shiena/ansicolor v0.0.0-20200904210342-c7312218db18 // indirect
github.com/spf13/afero v1.9.2 // indirect
github.com/spf13/cast v1.5.0 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
Expand All @@ -123,15 +125,15 @@ require (
go.mongodb.org/mongo-driver v1.10.0 // indirect
go.opentelemetry.io/contrib v0.22.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.22.0 // indirect
go.opentelemetry.io/otel v1.3.0 // indirect
go.opentelemetry.io/otel v1.8.0 // indirect
go.opentelemetry.io/otel/exporters/jaeger v1.0.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.3.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.3.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.3.0 // indirect
go.opentelemetry.io/otel/internal/metric v0.22.0 // indirect
go.opentelemetry.io/otel/metric v0.22.0 // indirect
go.opentelemetry.io/otel/sdk v1.3.0 // indirect
go.opentelemetry.io/otel/trace v1.3.0 // indirect
go.opentelemetry.io/otel/sdk v1.8.0 // indirect
go.opentelemetry.io/otel/trace v1.8.0 // indirect
go.opentelemetry.io/proto/otlp v0.11.0 // indirect
go.uber.org/atomic v1.9.0 // indirect
go.uber.org/multierr v1.8.0 // indirect
Expand Down
Loading

0 comments on commit 6dd414d

Please sign in to comment.