slsa-provenance-action icon indicating copy to clipboard operation
slsa-provenance-action copied to clipboard

Unable to use this action from macos-latest

Open Zenithar opened this issue 2 years ago • 2 comments

Context

From action.yml

encoded_github="$(echo ${GITHUB_CONTEXT} | base64 -w 0)"
encoded_runner="$(echo ${RUNNER_CONTEXT} | base64 -w 0)"

But -w doesn't exist for mac host

base64: invalid option -- w
Usage:	base64 [-hvDd] [-b num] [-i in_file] [-o out_file]
  -h, --help     display this message
  -Dd, --decode   decodes input
  -b, --break    break encoded string into num character lines
  -i, --input    input file (default: "-" for stdin)
  -o, --output   output file (default: "-" for stdout)

image

Zenithar avatar Feb 24 '22 19:02 Zenithar

Hi @Zenithar,

Thanks for creating this issue. This looks like a bug indeed. We are working on resolving this and will follow up on this issue once we have a (proposed) solution.

Brend-Smits avatar Feb 25 '22 08:02 Brend-Smits

Actually just noticed your Pull Request, sorry about that. Will review as soon as possible 👍 You rock!

Brend-Smits avatar Feb 25 '22 08:02 Brend-Smits