Merge pull request #73 from DeterminateSystems/clarify-log-message

Provide info output for potential missing permissions block
This commit is contained in:
Luc Perkins 2024-07-15 17:43:02 -07:00 committed by GitHub
commit 56ad6029ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 13 additions and 3 deletions

7
dist/index.js generated vendored
View file

@ -88421,7 +88421,12 @@ async function netrcPath() {
try {
await flakeHubLogin(destinedNetrcPath);
} catch (e) {
core.info("FlakeHub cache disabled.");
core.info(
"FlakeHub Cache is disabled due to missing or invalid token"
);
core.info(
`If you're signed up for FlakeHub Cache, make sure that your Actions config has a \`permissions\` block with \`id-token\` set to "write" and \`contents\` set to "read"`
);
core.debug(`Error while logging into FlakeHub: ${e}`);
}
return destinedNetrcPath;

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View file

@ -30,7 +30,12 @@ export async function netrcPath(): Promise<string> {
try {
await flakeHubLogin(destinedNetrcPath);
} catch (e) {
actionsCore.info("FlakeHub cache disabled.");
actionsCore.info(
"FlakeHub Cache is disabled due to missing or invalid token",
);
actionsCore.info(
`If you're signed up for FlakeHub Cache, make sure that your Actions config has a \`permissions\` block with \`id-token\` set to "write" and \`contents\` set to "read"`,
);
actionsCore.debug(`Error while logging into FlakeHub: ${e}`);
}
return destinedNetrcPath;