-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Behave well when MNCA isn't trusted #52
Conversation
actionsCore.warning(TEXT_TRUST_UNTRUSTED); | ||
return; | ||
} else if (cacheAction.idslib.nixStoreTrust === "unknown") { | ||
actionsCore.info(TEXT_TRUST_UNKNOWN); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this not be warning
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think so: it may be unknown if they're using a remote ssh store, for example. I don't want to emit useless warnings for scenarios we're not certain are worth a warning.
return; | ||
} | ||
|
||
if (cacheAction.idslib.nixStoreTrust === "untrusted") { | ||
actionsCore.warning(TEXT_TRUST_UNTRUSTED); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really want to exit with a warning instead of just erroring? If the runner user isn't trusted, then there's no point in having this action, and if that were me, I'd want to be notified that this is what happened (i.e. I personally would expect an error).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Philosophically I look at it like where we only warn and go into noop mode if Nix isn't installed. I'd rather not force the user to delete the action altogether if the trust situation is just temporary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
else lgtm
Well, the untrusted test failed, so probably want to fix that first (maybe make it required?). |
Description
Checklist