mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #491] Terraform commands failed with permission denied when using hashicorp-setup-terraform@v1 on Windows #338
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#338
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cdhunt on GitHub (Jan 20, 2021).
Original GitHub issue: https://github.com/nektos/act/issues/491
The workflow works as expected from WSL, but from the WIndows client, act is unable to execute commands.
There is a little bit of additional context in #437.
Debug output for the hashicorp-setup-terraform step.
Output from Terraform Format step.
@edtan-caseware commented on GitHub (Jan 20, 2021):
One thing I've noticed is that the execution flag is missing from the
terraformscript when run from Windows:But in Linux/WSL, the execute bit is set:
@catthehacker commented on GitHub (Jan 20, 2021):
This is because permission system is completely different between Windows and Linux, didn't had time to look at where and how it does but I assume
actcan recursivelychmod +xall actions after copy whenruntime.GOOS == 'windows'.@cdhunt commented on GitHub (Jan 21, 2021):
I assume that is the case. Despite being a copy from a Linux container to a Linux container, invoking through the Windows client is messing it up.
@catthehacker commented on GitHub (Jan 21, 2021):
@cdhunt It's not Linux<>Linux copy
I actually have no idea if that can be solved just in

actwith Go@cdhunt commented on GitHub (Jan 21, 2021):
Yeah, I looked through the code and see it dumps to the local filesystem before copying into the container.
Can you
execachmod +xhere.@github-actions[bot] commented on GitHub (Feb 21, 2021):
Issue is stale and will be closed in 14 days unless there is new activity
@cdhunt commented on GitHub (Feb 22, 2021):
This would be incredibly useful functionality to support.
@github-actions[bot] commented on GitHub (Mar 25, 2021):
Issue is stale and will be closed in 14 days unless there is new activity
@cdhunt commented on GitHub (Mar 26, 2021):
bump
@dtracers commented on GitHub (Aug 31, 2021):
was this ever solved?
I am also using a windows system and having issues with permission denied errors
@JasonCubic commented on GitHub (Dec 22, 2022):
A workaround is to add this step after you install terraform.
@ForNeVeR commented on GitHub (Apr 6, 2023):
Theoretically, it could consult Git about the file flags if started from Windows.
Say,
This means the file should have the execute bit set.