Provide info output for potential missing permissions block

This commit is contained in:
Luc Perkins 2024-07-15 17:38:01 -07:00
parent 7f56db3553
commit 45d13621c5
No known key found for this signature in database
GPG key ID: 16DB1108FB591835
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;