The initial task worked but subsequent ones return this error with no extra detail. Below is the debug output that doesn't indicate what the issue could be.
##[debug]Evaluating condition for step: 'Create or Update Azure Policies'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: Create or Update Azure Policies
##[debug]Loading inputs
##[debug]Loading env
Run azure/manage-azure-policy@v0
##[debug]Looking for policy definition paths to include...
##[debug]Policy file pattern: policies/**/policy.json
##[debug] Matching policy paths: policies/audit-resource-group-delete-lock/policy.json,policies/audit-sql-backup-retention/policy.json,policies/audit-tag-on-resources/policy.json,policies/storage-account-minimumTlsVersion/policy.json
##[debug]Looking for policy definition paths to ignore...
##[debug]----------------------------------------------------------------------------------------------------
##[debug]Found the following policy paths that match the given path filters:
##[debug]
##[debug]policies/audit-resource-group-delete-lock
##[debug]policies/audit-sql-backup-retention
##[debug]policies/audit-tag-on-resources
##[debug]policies/storage-account-minimumTlsVersion
##[debug]----------------------------------------------------------------------------------------------------
##[debug]Looking for policy initiative paths to include...
##[debug]Policy file pattern: policies/**/policyset.json
##[debug] Matching policy paths:
##[debug]Looking for policy initiative paths to ignore...
##[debug]----------------------------------------------------------------------------------------------------
##[debug]Found no policy initiatives that match the given path filters.
##[debug]----------------------------------------------------------------------------------------------------
##[debug]Looking for policy assignment paths to include...
##[debug]Assignment pattern: policies/**/assign.*.json
##[debug] Matching assignment paths:
##[debug]Looking for policy assignment paths to ignore...
##[debug]----------------------------------------------------------------------------------------------------
##[debug]Found no policy assignments that match the given path filters.
##[debug]----------------------------------------------------------------------------------------------------
##[debug]"/usr/bin/az" cloud show
##[debug]"/usr/bin/az" account get-access-token --resource=https://management.azure.com
::add-mask::***
##[debug][POST]https://management.azure.com/batch?api-version=2019-09-01
##[debug]----------------------------------------------------------------------------------------------------
##[debug]Status of batch calls:
##[debug]----------------------------------------------------------------------------------------------------
##[debug]Name : 0. Status : 200
##[debug]Name : 1. Status : 200
##[debug]Name : 2. Status : 200
##[debug]Name : 3. Status : 200
##[debug]----------------------------------------------------------------------------------------------------
##[debug]End
##[debug]----------------------------------------------------------------------------------------------------
##[debug]----------------------------------------------------------------------------------------------------
##[debug]Comparing Hash for policy id : /providers/Microsoft.Management/managementGroups/<REDACTED>/providers/Microsoft.Authorization/policyDefinitions/d94fe135-13ac-42d5-864f-8ad97b9081b6 : true
##[debug]----------------------------------------------------------------------------------------------------
##[debug]----------------------------------------------------------------------------------------------------
##[debug]Comparing Hash for policy id : /providers/Microsoft.Management/managementGroups/<REDACTED>/providers/Microsoft.Authorization/policyDefinitions/2104f3c0-ef2e-4dce-bc77-6c5efdf0d271 : true
##[debug]----------------------------------------------------------------------------------------------------
##[debug]----------------------------------------------------------------------------------------------------
##[debug]Comparing Hash for policy id : /providers/Microsoft.Management/managementGroups/<REDACTED>/providers/Microsoft.Authorization/policyDefinitions/734db12f-b068-424a-8813-f9a4aae8636c : true
##[debug]----------------------------------------------------------------------------------------------------
##[debug]----------------------------------------------------------------------------------------------------
##[debug]Comparing Hash for policy id : /providers/Microsoft.Management/managementGroups/<REDACTED>/providers/Microsoft.Authorization/policyDefinitions/0a8bcc74-a227-46d0-957f-62abb7c98b11 : true
##[debug]----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
Error : Error occurred while fetching policies from Azure.
----------------------------------------------------------------------------------------------------
Error: Error while deploying policies.
##[debug]Node Action run completed with exit code 1
##[debug]AZURE_HTTP_USER_AGENT='GITHUBACTIONS_ManageAzurePolicy_bc9a51e11d1367bd4a7160fd4b830f2ae6f4a6b9b647f660b37511e745ecaff7'
##[debug]Finishing: Create or Update Azure Policies
The initial task worked but subsequent ones return this error with no extra detail. Below is the debug output that doesn't indicate what the issue could be.