mirror of
https://github.com/DeterminateSystems/magic-nix-cache-action.git
synced 2024-12-26 01:12:17 +01:00
Provide info output for potential missing permissions block
This commit is contained in:
parent
7f56db3553
commit
45d13621c5
3 changed files with 13 additions and 3 deletions
7
dist/index.js
generated
vendored
7
dist/index.js
generated
vendored
|
@ -88421,7 +88421,12 @@ async function netrcPath() {
|
||||||
try {
|
try {
|
||||||
await flakeHubLogin(destinedNetrcPath);
|
await flakeHubLogin(destinedNetrcPath);
|
||||||
} catch (e) {
|
} 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}`);
|
core.debug(`Error while logging into FlakeHub: ${e}`);
|
||||||
}
|
}
|
||||||
return destinedNetrcPath;
|
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 {
|
try {
|
||||||
await flakeHubLogin(destinedNetrcPath);
|
await flakeHubLogin(destinedNetrcPath);
|
||||||
} catch (e) {
|
} 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}`);
|
actionsCore.debug(`Error while logging into FlakeHub: ${e}`);
|
||||||
}
|
}
|
||||||
return destinedNetrcPath;
|
return destinedNetrcPath;
|
||||||
|
|
Loading…
Reference in a new issue