Skip to content
Snippets Groups Projects
Unverified Commit 0f063932 authored by Rhys Arkins's avatar Rhys Arkins Committed by GitHub
Browse files

fix(github-release-attachments): set token correctly (#21233)

parent 2bd80d60
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,7 @@ export type PlatformId = ...@@ -10,6 +10,7 @@ export type PlatformId =
export const GITHUB_API_USING_HOST_TYPES = [ export const GITHUB_API_USING_HOST_TYPES = [
'github', 'github',
'github-releases', 'github-releases',
'github-release-attachments',
'github-tags', 'github-tags',
'pod', 'pod',
'hermit', 'hermit',
......
import { GlobalConfig } from '../config/global'; import { GlobalConfig } from '../config/global';
import { logger } from '../logger'; import { logger } from '../logger';
import { GithubReleaseAttachmentsDatasource } from '../modules/datasource/github-release-attachments';
import { GithubReleasesDatasource } from '../modules/datasource/github-releases'; import { GithubReleasesDatasource } from '../modules/datasource/github-releases';
import { GithubTagsDatasource } from '../modules/datasource/github-tags'; import { GithubTagsDatasource } from '../modules/datasource/github-tags';
import type { PackageFileContent } from '../modules/manager/types'; import type { PackageFileContent } from '../modules/manager/types';
...@@ -31,7 +32,8 @@ export function checkGithubToken( ...@@ -31,7 +32,8 @@ export function checkGithubToken(
if ( if (
!dep.skipReason && !dep.skipReason &&
(dep.datasource === GithubTagsDatasource.id || (dep.datasource === GithubTagsDatasource.id ||
dep.datasource === GithubReleasesDatasource.id) dep.datasource === GithubReleasesDatasource.id ||
dep.datasource === GithubReleaseAttachmentsDatasource.id)
) { ) {
dep.skipReason = 'github-token-required'; dep.skipReason = 'github-token-required';
if (dep.depName) { if (dep.depName) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment