Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Malfunctions on PowershellCore OSX & LInux #807

Open
Nissplus opened this issue Oct 28, 2019 · 0 comments
Open

Malfunctions on PowershellCore OSX & LInux #807

Nissplus opened this issue Oct 28, 2019 · 0 comments

Comments

@Nissplus
Copy link

Title

Malfunctions on PowershellCore OSX & Linux

Description

On OSX and Linux AzSK runs the builtin policies, but fails to upload organization policy extensions to the storage account and fails to run them.

Since outside pull requests are not being accepted, applying the following diffs will make things work:
master...gfrascadorio:master

Steps to reproduce

Issue 685 may also be caused by this problem. If one uses Linux or OSX to follow the instructions for Extending AzSK Modules and then call Install-AzSKOrganizationPolicy or Update-AzSKOrganizationPolicy, no *.ext.ps1 files will be uploaded to the storage account.

The issue seems to be the use of Windows specific:

  • directory separators
  • path separators
  • mode bits
  • non-portable construction of paths using + instead of Join-Path

Expected behavior

*.ext.ps1 files would be uploaded

Actual behavior

Files not uploaded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant