Skip to content

Commit a9161c9

Browse files
authored
githubHost check should be for github.com
1 parent 0f1b7d9 commit a9161c9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/spec-configuration/httpOCIRegistry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ async function getCredential(params: CommonParams, ociRef: OCIRef | OCICollectio
173173
return credentialFromDockerConfig;
174174
}
175175

176-
if (registry === 'ghcr.io' && githubToken && (!githubHost || githubHost === 'ghcr.io')) {
176+
if (registry === 'ghcr.io' && githubToken && (!githubHost || githubHost === 'github.com')) {
177177
output.write('[httpOci] Using environment GITHUB_TOKEN for auth', LogLevel.Trace);
178178
const userToken = `USERNAME:${env['GITHUB_TOKEN']}`;
179179
return {

0 commit comments

Comments
 (0)