Fix lscr.io image update verification; tighten Docker widget

lscr.io is backed by ghcr.io and requires a GitHub token for registry
auth — passing it fixes the silent null return from the token endpoint.
Widget now shows only confirmed outdated/current containers, with
unverified and unsupported-registry images summarised as a footer count.
This commit is contained in:
2026-05-16 18:00:15 +02:00
parent 2a7801f430
commit 367a2d8a27
2 changed files with 24 additions and 29 deletions
+2 -1
View File
@@ -119,7 +119,8 @@ async function getGhcrLatestDigest(image: string, tag: string): Promise<string |
}
async function getLscrLatestDigest(image: string, tag: string): Promise<string | null> {
return getGenericRegistryDigest('lscr.io', image, tag)
// lscr.io is backed by ghcr.io and requires the same GitHub token auth
return getGenericRegistryDigest('lscr.io', image, tag, process.env.GITHUB_TOKEN)
}
router.get('/docker', async (_req, res) => {