Skip to content

Commit

Permalink
brp
Browse files Browse the repository at this point in the history
  • Loading branch information
oskogstad committed Dec 21, 2024
1 parent d49c394 commit e40d7ed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/Digdir.Tool.Dialogporten.LargeDataSetGenerator/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
var endDate = DateTimeOffset.Parse(Environment.GetEnvironmentVariable("TO_DATE")!);
var dialogAmount = int.Parse(Environment.GetEnvironmentVariable("DIALOG_AMOUNT")!);

Console.WriteLine($"Connection string: {connString}");
Console.WriteLine($"Starting date: {startingDate}");
Console.WriteLine($"End date: {endDate}");
Console.WriteLine($"Dialog amount: {dialogAmount}");

var totalDialogCreatedStartTimestamp = Stopwatch.GetTimestamp();


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"commandName": "Project",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development",
"FROM_DATE": "1990-01-01",
"FROM_DATE": "1905-01-03",
"TO_DATE": "2023-12-31",
"DIALOG_AMOUNT": "1000",
"DIALOG_AMOUNT": "100000",
"CONN_STRING": "Server=localhost;Port=5432;Database=dialogporten;User ID=postgres;Password=supersecret;Include Error Detail=True;"

Check failure

Code scanning / SonarCloud

Database passwords should not be disclosed High

Make sure this database password gets changed and removed from the code. See more on SonarQube Cloud
}
}
Expand Down

0 comments on commit e40d7ed

Please sign in to comment.