Files
appstore/.github/renovate-global.js
T
okxlin d26004a6ca Harden Renovate caching and digest versioning
Strip image digests before deriving app directory versions, while continuing to reject digest-only images. Document the cache privacy boundary, restrict the workflow token to read-only, and bound full scans to 90 minutes.
2026-07-12 10:36:01 +08:00

31 lines
865 B
JavaScript

const username = process.env.RENOVATE_DOCKERHUB_USERNAME;
const password = process.env.RENOVATE_DOCKERHUB_TOKEN;
const dockerConfig = require("./renovate-docker.json");
const dockerHubHosts = [
"docker.io",
"index.docker.io",
"registry-1.docker.io",
];
if (!username || !password) {
throw new Error(
"Docker Hub credentials are required: configure DOCKERHUB_USERNAME and DOCKERHUB_TOKEN repository secrets.",
);
}
module.exports = {
...dockerConfig,
// Keep the self-hosted controller independent from the hosted App's root config.
requireConfig: "ignored",
onboarding: false,
branchPrefix: "selfhosted-renovate/",
dependencyDashboard: true,
dependencyDashboardTitle: "Dependency Dashboard (Docker Images)",
hostRules: dockerHubHosts.map((matchHost) => ({
hostType: "docker",
matchHost,
username,
password,
})),
};