magic-nix-cache icon indicating copy to clipboard operation
magic-nix-cache copied to clipboard

`Generate Credentials` workflow fails at `Dump Credentials` stage

Open boldpulse opened this issue 1 year ago • 2 comments

Hello, I tried to run this code locally and found out that I need to generate the credentials for Github Action Cache API by using Generate Credentials workflow - keygen.yaml.

Although, I ran this command on my Ubuntu machine, nix shell nixpkgs#age --command age-keygen -o key.txt and set an repository secret called AGE_PUBLIC_KEY as the public key retrieved from that command.

But when I tried to manually run the Generate Credentials workflow, it fails with this error.

In fact, it passes but it doesn't dump credentials correctly.

https://github.com/aleksdmladenovic/magic-nix-cache/actions/runs/10945125943/job/30657037776#step:6:12

image

Looking forward to solution to this! Thanks!

boldpulse avatar Sep 25 '24 16:09 boldpulse

Hi @aleksdmladenovic, thanks for the issue. That is a remnant from when we were first developing and testing the magic nix cache, and we don't really use it / should probably delete it. So I'm curious: why do you want to do that?

grahamc avatar Sep 25 '24 18:09 grahamc

Thanks for your feedback, @grahamc I want to test magic-nix-cache byitself without embedding it to action.

boldpulse avatar Sep 26 '24 15:09 boldpulse