-
Notifications
You must be signed in to change notification settings - Fork 22
Action can't find the artifact #22
Comments
Lemme see what's going on. |
Feels like something weird is going on? Or I'm missing something? https://github.com/loosebazooka/example-build/runs/2908688176?check_suite_focus=true (Expand There doesn't appear to be a bazel-bin/hello_/hello in there? |
blaze-* are symlinks. You need to use |
ah maybe the go code also doesn't follow symlinks |
Oh yeah this is definitely the case. I'll fix that. |
Ugh. So while I didn't implement symlink resolution when walking a directory provided as the artifact path, the example workflow here provides a file so that shouldn't be the issue. There is, however, a more frustrating issue going on here with containers and symlinks. ProblemGitHub Actions runs our provenance generator action in a container as follows:
The
However the home directory in the container isn't mounted as This behavior seems to be corroborated by others: obligatory SO link SolutionAside from telling people to avoid symlinks (e.g. by copying files), I'm not sure there's a great solution here. I may be able to add something to detect broken symlinks to improve the error message on our end but the core issue wouldn't really be addressable by us. |
An alternative solution would be to reimplement in JavaScript so that you don't need a container at all. |
The action does not work because it cannot find the artifact. To reproduce, see https://github.com/MarkLodato/example-build and an example run. The slsa-framework/github-actions-demo@v1 step fails with the following error:
(This step has
continue-on-error: true
so the rest of the workflow succeeds.)The file definitely exists and is picked up correctly by the upload-artifact step.
The text was updated successfully, but these errors were encountered: