Improve git security settings#10486
Improve git security settings#10486gh-worker-dd-mergequeue-cf854d[bot] merged 6 commits intomasterfrom
Conversation
Test Environment - sbt-scalatestJob Status: success
|
Test Environment - pass4sJob Status: success
|
Test Environment - nebula-release-pluginJob Status: success
|
Test Environment - reactive-streams-jvmJob Status: success
|
Test Environment - netflix-zuulJob Status: success
|
Test Environment - sonar-kotlinJob Status: success
|
Test Environment - jolokiaJob Status: success
|
Test Environment - okhttpJob Status: success
|
Test Environment - spring_bootJob Status: success
|
Test Environment - sonar-javaJob Status: success
|
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 64 metrics, 7 unstable metrics. Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.59.0-SNAPSHOT~526780e135, baseline=1.60.0-SNAPSHOT~b83178b28d
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.069 s) : 0, 1068963
Total [baseline] (10.932 s) : 0, 10932116
Agent [candidate] (1.066 s) : 0, 1066255
Total [candidate] (10.877 s) : 0, 10876779
section appsec
Agent [baseline] (1.248 s) : 0, 1248110
Total [baseline] (11.04 s) : 0, 11040012
Agent [candidate] (1.237 s) : 0, 1237251
Total [candidate] (10.994 s) : 0, 10993616
section iast
Agent [baseline] (1.235 s) : 0, 1235386
Total [baseline] (11.165 s) : 0, 11164614
Agent [candidate] (1.232 s) : 0, 1232348
Total [candidate] (11.238 s) : 0, 11238200
section profiling
Agent [baseline] (1.201 s) : 0, 1200633
Total [baseline] (11.093 s) : 0, 11093498
Agent [candidate] (1.192 s) : 0, 1192192
Total [candidate] (10.992 s) : 0, 10991689
gantt
title petclinic - break down per module: candidate=1.59.0-SNAPSHOT~526780e135, baseline=1.60.0-SNAPSHOT~b83178b28d
dateFormat X
axisFormat %s
section tracing
crashtracking [baseline] (1.184 ms) : 0, 1184
crashtracking [candidate] (1.18 ms) : 0, 1180
BytebuddyAgent [baseline] (630.293 ms) : 0, 630293
BytebuddyAgent [candidate] (628.721 ms) : 0, 628721
AgentMeter [baseline] (29.012 ms) : 0, 29012
AgentMeter [candidate] (28.973 ms) : 0, 28973
GlobalTracer [baseline] (257.855 ms) : 0, 257855
GlobalTracer [candidate] (257.652 ms) : 0, 257652
AppSec [baseline] (32.855 ms) : 0, 32855
AppSec [candidate] (32.831 ms) : 0, 32831
Debugger [baseline] (64.061 ms) : 0, 64061
Debugger [candidate] (62.616 ms) : 0, 62616
Remote Config [baseline] (611.134 µs) : 0, 611
Remote Config [candidate] (614.953 µs) : 0, 615
Telemetry [baseline] (13.114 ms) : 0, 13114
Telemetry [candidate] (10.566 ms) : 0, 10566
Flare Poller [baseline] (4.593 ms) : 0, 4593
Flare Poller [candidate] (7.723 ms) : 0, 7723
section appsec
crashtracking [baseline] (1.186 ms) : 0, 1186
crashtracking [candidate] (1.179 ms) : 0, 1179
BytebuddyAgent [baseline] (662.695 ms) : 0, 662695
BytebuddyAgent [candidate] (656.627 ms) : 0, 656627
AgentMeter [baseline] (12.022 ms) : 0, 12022
AgentMeter [candidate] (11.917 ms) : 0, 11917
GlobalTracer [baseline] (260.418 ms) : 0, 260418
GlobalTracer [candidate] (258.34 ms) : 0, 258340
IAST [baseline] (25.469 ms) : 0, 25469
IAST [candidate] (25.225 ms) : 0, 25225
AppSec [baseline] (168.894 ms) : 0, 168894
AppSec [candidate] (167.724 ms) : 0, 167724
Debugger [baseline] (68.116 ms) : 0, 68116
Debugger [candidate] (67.493 ms) : 0, 67493
Remote Config [baseline] (682.987 µs) : 0, 683
Remote Config [candidate] (663.42 µs) : 0, 663
Telemetry [baseline] (9.336 ms) : 0, 9336
Telemetry [candidate] (9.111 ms) : 0, 9111
Flare Poller [baseline] (3.753 ms) : 0, 3753
Flare Poller [candidate] (3.752 ms) : 0, 3752
section iast
crashtracking [baseline] (1.187 ms) : 0, 1187
crashtracking [candidate] (1.185 ms) : 0, 1185
BytebuddyAgent [baseline] (798.0 ms) : 0, 798000
BytebuddyAgent [candidate] (796.445 ms) : 0, 796445
AgentMeter [baseline] (11.298 ms) : 0, 11298
AgentMeter [candidate] (11.306 ms) : 0, 11306
GlobalTracer [baseline] (248.369 ms) : 0, 248369
GlobalTracer [candidate] (248.645 ms) : 0, 248645
IAST [baseline] (27.16 ms) : 0, 27160
IAST [candidate] (26.63 ms) : 0, 26630
AppSec [baseline] (33.358 ms) : 0, 33358
AppSec [candidate] (34.585 ms) : 0, 34585
Debugger [baseline] (67.927 ms) : 0, 67927
Debugger [candidate] (65.468 ms) : 0, 65468
Remote Config [baseline] (546.583 µs) : 0, 547
Remote Config [candidate] (547.602 µs) : 0, 548
Telemetry [baseline] (8.735 ms) : 0, 8735
Telemetry [candidate] (8.795 ms) : 0, 8795
Flare Poller [baseline] (3.452 ms) : 0, 3452
Flare Poller [candidate] (3.47 ms) : 0, 3470
section profiling
crashtracking [baseline] (1.224 ms) : 0, 1224
crashtracking [candidate] (1.206 ms) : 0, 1206
BytebuddyAgent [baseline] (687.923 ms) : 0, 687923
BytebuddyAgent [candidate] (683.589 ms) : 0, 683589
AgentMeter [baseline] (9.08 ms) : 0, 9080
AgentMeter [candidate] (9.013 ms) : 0, 9013
GlobalTracer [baseline] (217.029 ms) : 0, 217029
GlobalTracer [candidate] (215.538 ms) : 0, 215538
AppSec [baseline] (32.811 ms) : 0, 32811
AppSec [candidate] (32.432 ms) : 0, 32432
Debugger [baseline] (68.559 ms) : 0, 68559
Debugger [candidate] (67.804 ms) : 0, 67804
Remote Config [baseline] (609.245 µs) : 0, 609
Remote Config [candidate] (609.461 µs) : 0, 609
Telemetry [baseline] (9.103 ms) : 0, 9103
Telemetry [candidate] (8.912 ms) : 0, 8912
Flare Poller [baseline] (3.81 ms) : 0, 3810
Flare Poller [candidate] (3.779 ms) : 0, 3779
ProfilingAgent [baseline] (100.119 ms) : 0, 100119
ProfilingAgent [candidate] (99.453 ms) : 0, 99453
Profiling [baseline] (100.703 ms) : 0, 100703
Profiling [candidate] (100.034 ms) : 0, 100034
Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.59.0-SNAPSHOT~526780e135, baseline=1.60.0-SNAPSHOT~b83178b28d
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.075 s) : 0, 1075066
Total [baseline] (8.786 s) : 0, 8786158
Agent [candidate] (1.072 s) : 0, 1072477
Total [candidate] (8.795 s) : 0, 8795295
section iast
Agent [baseline] (1.231 s) : 0, 1231383
Total [baseline] (9.39 s) : 0, 9390006
Agent [candidate] (1.235 s) : 0, 1235329
Total [candidate] (9.416 s) : 0, 9415628
gantt
title insecure-bank - break down per module: candidate=1.59.0-SNAPSHOT~526780e135, baseline=1.60.0-SNAPSHOT~b83178b28d
dateFormat X
axisFormat %s
section tracing
crashtracking [baseline] (1.217 ms) : 0, 1217
crashtracking [candidate] (1.197 ms) : 0, 1197
BytebuddyAgent [baseline] (633.769 ms) : 0, 633769
BytebuddyAgent [candidate] (633.834 ms) : 0, 633834
AgentMeter [baseline] (29.259 ms) : 0, 29259
AgentMeter [candidate] (29.229 ms) : 0, 29229
GlobalTracer [baseline] (260.223 ms) : 0, 260223
GlobalTracer [candidate] (259.28 ms) : 0, 259280
AppSec [baseline] (33.061 ms) : 0, 33061
AppSec [candidate] (33.034 ms) : 0, 33034
Debugger [baseline] (62.737 ms) : 0, 62737
Debugger [candidate] (61.421 ms) : 0, 61421
Remote Config [baseline] (625.287 µs) : 0, 625
Remote Config [candidate] (623.315 µs) : 0, 623
Telemetry [baseline] (10.827 ms) : 0, 10827
Telemetry [candidate] (10.737 ms) : 0, 10737
Flare Poller [baseline] (7.735 ms) : 0, 7735
Flare Poller [candidate] (7.592 ms) : 0, 7592
section iast
crashtracking [baseline] (1.191 ms) : 0, 1191
crashtracking [candidate] (1.186 ms) : 0, 1186
BytebuddyAgent [baseline] (795.724 ms) : 0, 795724
BytebuddyAgent [candidate] (798.733 ms) : 0, 798733
AgentMeter [baseline] (11.322 ms) : 0, 11322
AgentMeter [candidate] (11.364 ms) : 0, 11364
GlobalTracer [baseline] (247.839 ms) : 0, 247839
GlobalTracer [candidate] (249.072 ms) : 0, 249072
IAST [baseline] (27.072 ms) : 0, 27072
IAST [candidate] (27.227 ms) : 0, 27227
AppSec [baseline] (35.673 ms) : 0, 35673
AppSec [candidate] (35.471 ms) : 0, 35471
Debugger [baseline] (64.299 ms) : 0, 64299
Debugger [candidate] (64.027 ms) : 0, 64027
Remote Config [baseline] (543.415 µs) : 0, 543
Remote Config [candidate] (538.447 µs) : 0, 538
Telemetry [baseline] (8.883 ms) : 0, 8883
Telemetry [candidate] (8.815 ms) : 0, 8815
Flare Poller [baseline] (3.535 ms) : 0, 3535
Flare Poller [candidate] (3.526 ms) : 0, 3526
LoadParameters
See matching parameters
SummaryFound 3 performance improvements and 4 performance regressions! Performance is the same for 13 metrics, 16 unstable metrics.
Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.59.0-SNAPSHOT~526780e135, baseline=1.60.0-SNAPSHOT~b83178b28d
dateFormat X
axisFormat %s
section baseline
no_agent (17.221 ms) : 17052, 17391
. : milestone, 17221,
appsec (19.567 ms) : 19367, 19767
. : milestone, 19567,
code_origins (17.875 ms) : 17699, 18050
. : milestone, 17875,
iast (19.046 ms) : 18850, 19242
. : milestone, 19046,
profiling (18.988 ms) : 18799, 19177
. : milestone, 18988,
tracing (17.62 ms) : 17446, 17794
. : milestone, 17620,
section candidate
no_agent (18.141 ms) : 17954, 18328
. : milestone, 18141,
appsec (18.648 ms) : 18459, 18837
. : milestone, 18648,
code_origins (17.676 ms) : 17501, 17851
. : milestone, 17676,
iast (17.989 ms) : 17808, 18171
. : milestone, 17989,
profiling (18.607 ms) : 18420, 18793
. : milestone, 18607,
tracing (17.579 ms) : 17404, 17754
. : milestone, 17579,
Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.59.0-SNAPSHOT~526780e135, baseline=1.60.0-SNAPSHOT~b83178b28d
dateFormat X
axisFormat %s
section baseline
no_agent (1.186 ms) : 1174, 1198
. : milestone, 1186,
iast (3.133 ms) : 3090, 3176
. : milestone, 3133,
iast_FULL (5.802 ms) : 5744, 5860
. : milestone, 5802,
iast_GLOBAL (3.365 ms) : 3310, 3419
. : milestone, 3365,
profiling (2.056 ms) : 2037, 2075
. : milestone, 2056,
tracing (1.845 ms) : 1829, 1861
. : milestone, 1845,
section candidate
no_agent (1.186 ms) : 1174, 1198
. : milestone, 1186,
iast (3.296 ms) : 3250, 3341
. : milestone, 3296,
iast_FULL (5.908 ms) : 5848, 5967
. : milestone, 5908,
iast_GLOBAL (3.649 ms) : 3579, 3719
. : milestone, 3649,
profiling (1.995 ms) : 1978, 2013
. : milestone, 1995,
tracing (1.771 ms) : 1757, 1785
. : milestone, 1771,
DacapoParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 11 metrics, 1 unstable metrics. Execution time for tomcatgantt
title tomcat - execution time [CI 0.99] : candidate=1.59.0-SNAPSHOT~526780e135, baseline=1.60.0-SNAPSHOT~b83178b28d
dateFormat X
axisFormat %s
section baseline
no_agent (1.476 ms) : 1465, 1488
. : milestone, 1476,
appsec (3.78 ms) : 3555, 4004
. : milestone, 3780,
iast (2.255 ms) : 2186, 2324
. : milestone, 2255,
iast_GLOBAL (2.3 ms) : 2230, 2370
. : milestone, 2300,
profiling (2.106 ms) : 2050, 2163
. : milestone, 2106,
tracing (2.067 ms) : 2013, 2120
. : milestone, 2067,
section candidate
no_agent (1.473 ms) : 1462, 1485
. : milestone, 1473,
appsec (3.783 ms) : 3561, 4005
. : milestone, 3783,
iast (2.252 ms) : 2184, 2321
. : milestone, 2252,
iast_GLOBAL (2.299 ms) : 2229, 2369
. : milestone, 2299,
profiling (2.095 ms) : 2040, 2150
. : milestone, 2095,
tracing (2.079 ms) : 2025, 2133
. : milestone, 2079,
Execution time for biojavagantt
title biojava - execution time [CI 0.99] : candidate=1.59.0-SNAPSHOT~526780e135, baseline=1.60.0-SNAPSHOT~b83178b28d
dateFormat X
axisFormat %s
section baseline
no_agent (15.04 s) : 15040000, 15040000
. : milestone, 15040000,
appsec (15.142 s) : 15142000, 15142000
. : milestone, 15142000,
iast (18.092 s) : 18092000, 18092000
. : milestone, 18092000,
iast_GLOBAL (18.12 s) : 18120000, 18120000
. : milestone, 18120000,
profiling (14.89 s) : 14890000, 14890000
. : milestone, 14890000,
tracing (14.643 s) : 14643000, 14643000
. : milestone, 14643000,
section candidate
no_agent (15.595 s) : 15595000, 15595000
. : milestone, 15595000,
appsec (14.394 s) : 14394000, 14394000
. : milestone, 14394000,
iast (18.073 s) : 18073000, 18073000
. : milestone, 18073000,
iast_GLOBAL (17.965 s) : 17965000, 17965000
. : milestone, 17965000,
profiling (14.973 s) : 14973000, 14973000
. : milestone, 14973000,
tracing (15.151 s) : 15151000, 15151000
. : milestone, 15151000,
|
| this.latestCommitsLimit = latestCommitsLimit; | ||
| commandExecutor = new ShellCommandExecutor(new File(repoRoot), timeoutMillis); | ||
|
|
||
| String gitRepoRoot = findGitRepositoryRoot(new File(repoRoot).getAbsoluteFile()); |
There was a problem hiding this comment.
Nitpick: you're calling .getAbsoluteFile() here, and then again inside the findGitRepositoryRoot() method
There was a problem hiding this comment.
Also, the gitRepoRoot variable seems redundant: you could just do this.repoRoot = findGitRepositoryRoot(new File(repoRoot).getAbsoluteFile()); and then use the field everywhere.
repoRoot and gitRepoRoot are semantically the same (it's not like we can have a repo root that is not a Git repo root).
There was a problem hiding this comment.
Good point, addressed in 526780e to cleanup the implementation.
|
Hi! 👋 Thanks for your pull request! 🎉 To help us review it, please make sure to:
If you need help, please check our contributing guidelines. |
|
/merge |
|
View all feedbacks in Devflow UI.
The expected merge time in
|
fdfd27f
into
master
What Does This Do
-c safe.directory=...as config in all git commands instead of adding it withgit config --global --add safe.directory ....gitdirectory or file.Motivation
The previous approach, to avoid "dubious ownership" errors, actually added a new global git config option every single time that code run, causing config pollution.
Contributor Checklist
type:and (comp:orinst:) labels in addition to any useful labelsclose,fixor any linking keywords when referencing an issue.Use
solvesinstead, and assign the PR milestone to the issueJira ticket: SDTEST-3224