license switch agpl -> busl1, sprints work, new product advisories
This commit is contained in:
@@ -3,6 +3,7 @@ using Microsoft.Extensions.Logging;
|
||||
using StellaOps.Scanner.Contracts;
|
||||
using StellaOps.Scanner.Manifest.Models;
|
||||
using StellaOps.Scanner.Manifest.Persistence;
|
||||
using StellaOps.Scanner.Storage.Oci;
|
||||
|
||||
namespace StellaOps.Scanner.Manifest;
|
||||
|
||||
|
||||
@@ -189,7 +189,7 @@ public sealed class ManifestSnapshotRepository : RepositoryBase<ScannerDataSourc
|
||||
WHERE captured_at < @older_than
|
||||
""";
|
||||
|
||||
return await ExecuteWithRowCountAsync(
|
||||
return await ExecuteAsync(
|
||||
Tenant,
|
||||
sql,
|
||||
cmd => AddParameter(cmd, "older_than", olderThan.UtcDateTime),
|
||||
@@ -204,12 +204,13 @@ public sealed class ManifestSnapshotRepository : RepositoryBase<ScannerDataSourc
|
||||
SELECT EXISTS(SELECT 1 FROM {Table} WHERE manifest_digest = @manifest_digest)
|
||||
""";
|
||||
|
||||
return await QueryScalarAsync(
|
||||
var result = await ExecuteScalarAsync<bool>(
|
||||
Tenant,
|
||||
sql,
|
||||
cmd => AddParameter(cmd, "manifest_digest", manifestDigest),
|
||||
reader => reader.GetBoolean(0),
|
||||
cancellationToken).ConfigureAwait(false);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
private static OciManifestSnapshot MapSnapshot(NpgsqlDataReader reader)
|
||||
|
||||
@@ -50,10 +50,8 @@ public sealed class LayerDigestResolver : ILayerDigestResolver
|
||||
|
||||
// Capture manifest snapshot
|
||||
var snapshot = await _snapshotService.CaptureAsync(
|
||||
registry,
|
||||
repository,
|
||||
reference,
|
||||
new ManifestCaptureOptions { Platform = options.Platform },
|
||||
imageReference,
|
||||
new ManifestCaptureOptions { PlatformFilter = options.Platform },
|
||||
cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (snapshot is null)
|
||||
|
||||
Reference in New Issue
Block a user