Skip to content

Commit 44f3801

Browse files
Improve messages for when auth isn't available
1 parent cb6d4e8 commit 44f3801

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dist/index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -728,15 +728,15 @@ class NixInstallerAction extends DetSysAction {
728728
if (pr && base !== head) {
729729
this.recordEvent(EVENT_LOGIN_FAILURE, { reason: "fork" });
730730
actionsCore.info(
731-
`Not logging in to FlakeHub: GitHub Actions does not allow OIDC authentication from forked repositories ("${head}" is not the same repository as "${base}").`,
731+
`FlakeHub is disabled because this is a fork. GitHub Actions does not allow OIDC authentication from forked repositories ("${head}" is not from the same repository as "${base}").`,
732732
);
733733
return;
734734
}
735735

736736
this.recordEvent(EVENT_LOGIN_FAILURE, { reason: "not-configured" });
737737

738738
actionsCore.info(
739-
`Not logging in to FlakeHub: GitHub Actions has not provided OIDC token endpoints; please make sure that \`id-token: write\` and \`contents: read\` are set for this step's (or job's) permissions.`,
739+
"FlakeHub is disabled because the workflow is misconfigured. Please make sure that `id-token: write` and `contents: read` are set for this step's (or job's) permissions so that GitHub Actions provides OIDC token endpoints.",
740740
);
741741
actionsCore.info(
742742
`For more information, see https://docs.determinate.systems/guides/github-actions/#nix-installer-action`,

0 commit comments

Comments
 (0)