Add Github Action to run PSRule #1
repository.yml
on: pull_request
Analyze repository
26s
Annotations
5 errors
Analyze repository
Failed to expand bicep source '/home/runner/work/PsRule-Demo/PsRule-Demo/examples/bicep/storage.bicep'. Exception calling "GetBicepResources" with "2" argument(s): "Unable to expand resources because the source file '/home/runner/work/PsRule-Demo/PsRule-Demo/examples/bicep/storage.bicep' was not valid. An error occurred evaluating expression '[format('{0}/{1}', parameters('storageAccountName'), 'default')]' line 45. The parameter named 'storageAccountName' was not set or a defaultValue was defined."
|
Analyze repository
AZR-000166: sapsruledemoqrgc failed Azure.Resource.UseTags. Azure resources should be tagged using a standard convention.
|
Analyze repository
AZR-000202: sapsruledemoqrgc failed Azure.Storage.Firewall. Storage Accounts should only accept explicitly allowed traffic.
|
Analyze repository
One or more assertions failed. One or more rules reported failure.
|
Analyze repository
Process completed with exit code 1.
|