mirror of
https://github.com/DeterminateSystems/magic-nix-cache-action.git
synced 2024-11-25 21:24:59 +03:00
Provide info output for potential missing permissions block
This commit is contained in:
parent
7f56db3553
commit
45d13621c5
7
dist/index.js
generated
vendored
7
dist/index.js
generated
vendored
@ -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
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user