license switch agpl -> busl1, sprints work, new product advisories

This commit is contained in:
master
2026-01-20 15:32:20 +02:00
parent 4903395618
commit c32fff8f86
1835 changed files with 38630 additions and 4359 deletions

View File

@@ -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;

View File

@@ -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)

View File

@@ -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)