Azure / Community-Policy

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

Guid validation #425

Closed Joshua-Donovan closed 6 months ago

Joshua-Donovan commented 7 months ago

Re-adding to pull request list after accidentally deleting this one.

New workflow step to validate the policy definition GUID/UUID and checks for conflicts with existing Built-In Policy Definition names.

Updates since last Pull Request:

Requirements:

aschabus commented 7 months ago

@Joshua-Donovan wouldn't it be possible to check the GUID against https://www.azadvertizer.net/azpolicyadvertizer-comma.csv for uniqueness. In this case we wouldn't need any permissions or access tokens. The csv file is updated daily against Azure (built-in), ALZ, AMBA and Community Policies.

Joshua-Donovan commented 7 months ago

@Joshua-Donovan wouldn't it be possible to check the GUID against https://www.azadvertizer.net/azpolicyadvertizer-comma.csv for uniqueness. In this case we wouldn't need any permissions or access tokens. The csv file is updated daily against Azure (built-in), ALZ, AMBA and Community Policies.

@aschabus I can play with that possibility, but that does add a dependency on an external resource that using the GitHub search functionality does not.