Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
bump packages (#157)
Browse files Browse the repository at this point in the history
* bump packages & bitwarden CLI

* add some debug
  • Loading branch information
BlowaXD authored Aug 12, 2024
1 parent 1d08e82 commit 999c19e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM alpine:latest as downloader

ARG BW_VERSION=2023.5.0
ARG BW_VERSION=2024.7.2

RUN apk add wget unzip

Expand Down
10 changes: 5 additions & 5 deletions src/Bitwarden.SecretOperator/Bitwarden.SecretOperator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CliWrap" Version="3.6.4" />
<PackageReference Include="CliWrap" Version="3.6.6" />
<PackageReference Include="KubeOps" Version="7.6.1" />
<PackageReference Include="KubeOps.KubernetesClient" Version="7.6.1" />
<PackageReference Include="Polly" Version="8.2.0" />
<PackageReference Include="Serilog" Version="3.1.1" />
<PackageReference Include="KubeOps.KubernetesClient" Version="9.1.3" />
<PackageReference Include="Polly" Version="8.4.1" />
<PackageReference Include="Serilog" Version="4.0.1" />
<PackageReference Include="Serilog.Extensions.Logging" Version="8.0.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="5.0.1" />
<PackageReference Include="Serilog.Sinks.Console" Version="6.0.0" />
</ItemGroup>

<PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,16 +118,19 @@ public async Task UnlockAsync()
})
.ExecuteAsync();
string stdOut = stdOutBuffer.ToString();
string stdErr = stdErrBuffer.ToString();

if (_logger.IsEnabled(LogLevel.Debug))
{
_logger.LogDebug("`bw get item`: {Debug}", stdOut);
_logger.LogDebug("`bw get item`: {Error}", stdErr);
}

var item = JsonSerializer.Deserialize<BitwardenCliResponse<BitwardenItem>>(stdOut);
if (item is { Success: false })
{
_logger.LogWarning("`bw get item`: {Error}", stdOut);
_logger.LogWarning("`bw get item`: {Error}", stdErr);
}

return item!.Data;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="NFluent" Version="3.0.2.500" />
<PackageReference Include="xunit" Version="2.6.4" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.6">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="NFluent" Version="3.0.4" />
<PackageReference Include="xunit" Version="2.9.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.collector" Version="6.0.0">
<PackageReference Include="coverlet.collector" Version="6.0.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand Down

0 comments on commit 999c19e

Please sign in to comment.