Azure / Community-Policy

This repo is for Microsoft Azure customers and Microsoft teams to collaborate in making custom policies.
MIT License
636 stars 327 forks source link

Erroring on extra '\' in file path: Confirm Policy Definition has Unique ID and does not conflict with Built-In Policies #475

Closed Joshua-Donovan closed 1 month ago

Joshua-Donovan commented 1 month ago

https://github.com/Azure/Community-Policy/blob/eba5955a68eca428a703d04ce04c9c309788059e/.github/workflows/confirm-policy-definition-no-built-in-conflicts.yaml#L43

The file paths in GitHub actions for the changed file names have an issue where sometimes a '\' is appended to the file name.

We need to trim the file name before processing to avoid errors.

Joshua-Donovan commented 1 month ago

476