From da30780ac2ab2a332a2bf57b1fa7b5c22cedcc4e Mon Sep 17 00:00:00 2001 From: Viktor Pettersson Date: Wed, 30 Jul 2025 15:57:32 +1200 Subject: [PATCH] feat(autopatch): implement patch finder for retrieving latest patches from GitHub (#957) BE-12085 --- api/portainer.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/portainer.go b/api/portainer.go index 3ccda4107..3d9b6be4b 100644 --- a/api/portainer.go +++ b/api/portainer.go @@ -1794,8 +1794,10 @@ const ( AssetsServerURL = "https://portainer-io-assets.sfo2.digitaloceanspaces.com" // MessageOfTheDayURL represents the URL where Portainer MOTD message can be retrieved MessageOfTheDayURL = AssetsServerURL + "/motd.json" + // ReleasesURL represents the URL used to retrieve all releases of Portainer + ReleasesURL = "https://api.github.com/repos/portainer/portainer/releases" // VersionCheckURL represents the URL used to retrieve the latest version of Portainer - VersionCheckURL = "https://api.github.com/repos/portainer/portainer/releases/latest" + VersionCheckURL = ReleasesURL + "/latest" // PortainerAgentHeader represents the name of the header available in any agent response PortainerAgentHeader = "Portainer-Agent" // PortainerAgentEdgeIDHeader represent the name of the header containing the Edge ID associated to an agent/agent cluster