diff --git a/lib/constants/platforms.ts b/lib/constants/platforms.ts index 07a3094ef50a3b42cbe249922be200f7b15b1931..f3a1e71ac8b7ba548a5c1570ca5d831ad393056e 100644 --- a/lib/constants/platforms.ts +++ b/lib/constants/platforms.ts @@ -10,6 +10,7 @@ export type PlatformId = export const GITHUB_API_USING_HOST_TYPES = [ 'github', 'github-releases', + 'github-release-attachments', 'github-tags', 'pod', 'hermit', diff --git a/lib/util/check-token.ts b/lib/util/check-token.ts index fedca0aa8bd66e86a3f36d420c1745213ca0e5cc..8faceb3795fb79385cad5c8c95c389a15c204fe9 100644 --- a/lib/util/check-token.ts +++ b/lib/util/check-token.ts @@ -1,5 +1,6 @@ import { GlobalConfig } from '../config/global'; import { logger } from '../logger'; +import { GithubReleaseAttachmentsDatasource } from '../modules/datasource/github-release-attachments'; import { GithubReleasesDatasource } from '../modules/datasource/github-releases'; import { GithubTagsDatasource } from '../modules/datasource/github-tags'; import type { PackageFileContent } from '../modules/manager/types'; @@ -31,7 +32,8 @@ export function checkGithubToken( if ( !dep.skipReason && (dep.datasource === GithubTagsDatasource.id || - dep.datasource === GithubReleasesDatasource.id) + dep.datasource === GithubReleasesDatasource.id || + dep.datasource === GithubReleaseAttachmentsDatasource.id) ) { dep.skipReason = 'github-token-required'; if (dep.depName) {