Open politician opened 2 years ago
Hello any update on this issue? I get the same error when running through megalinter: https://github.com/oxsecurity/megalinter/issues/1136
What is the platform of host machine? I haven't seen this issue. It seems that the Docker image expects linux/amd64 but it is actually linux/arm64.
The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
I get the same error when running through megalinter
I don't know megalinter. So I can say nothing until it can be reproduced with only actionlint.
Thanks for getting to me! I'm using a Mac M1. Does rhysd/actionlint support multi-arch?
So just ran docker run --rm -v $(pwd):/repo --workdir /repo rhysd/actionlint:latest -color
and everything working as expected so this is a problem with megalinter running on M1, not with the actionlint docker image itself
Does rhysd/actionlint support multi-arch?
actionlint itself supports darwin/arm64. However I don't know shellcheck supports it or not. Does the following command run successfully?
n docker run --rm -v $(pwd):/repo --workdir /repo rhysd/actionlint:latest -color -shellcheck=
-shellcheck=
disables shellcheck integration. If it runs successfully, this seems a problem of shellcheck.
-shellcheck=
worked perfectly thanks :-)
Worfklow file:
If I run actionlint directly, no problem. However, if I run via Docker:
Then I get the following:
Note: If I remove
- run: echo test
it works