We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Hi,
We get SyntaxError: Unexpected token ( in JSON at position 109 when running the action as per example. Workflow:
SyntaxError: Unexpected token ( in JSON at position 109
name: 'Az Policy Scan' on: push: branches: - test-az-policy-action jobs: misc: runs-on: ubuntu-22.04 steps: - uses: azure/#@v1 with: creds: ${{ secrets.SP_CBF_IPEXDEVOPS_NONPRD }} - name: Check for resource compliance uses: azure/policy-compliance-scan@v0 with: scopes: | /subscriptions/<subscription-id>
Log excerpts:
... 2022-11-02T08:25:06.4629185Z No resources ignored 2022-11-02T08:25:06.4630475Z ---------------------------------------------------------------------------------------------------- 2022-11-02T08:25:06.4632573Z ##[debug]# of Unique resourceIds scanned : 23 2022-11-02T08:25:06.4633954Z ##[debug]---------------------------------------------------------------------------------------------------- 2022-11-02T08:25:06.4634659Z ##[debug]Second set of batch calls - Fetching all details of non-compliant resourceIds:: 2022-11-02T08:25:06.4635321Z ##[debug]---------------------------------------------------------------------------------------------------- 2022-11-02T08:25:06.4636190Z ##[debug]Getting results for requests # 0 to # 22 ==> 2022-11-02T08:25:06.4637169Z ##[debug]Batch request :: Batch URL: https://management.azure.com/batch?api-version=2020-06-01 # Requests: 23 2022-11-02T08:25:06.4639031Z ##[debug] Request URL sample: => https://management.azure.com/subscriptions/***/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2019-10-01&$expand=PolicyEvaluationDetails 2022-11-02T08:25:06.4640309Z ##[debug][POST]https://management.azure.com/batch?api-version=2020-06-01 2022-11-02T08:25:06.5105185Z ##[debug]Batch response :: Status: 202 Location: https://management.azure.com/batch/eyJqb2JJZCI6IkJhdGNoUmVxdWVzdFByb2Nlc3NpbmdKb2I6MkQtQjhDMDJERUY6MkQyMDM3OjJENDRGMzoyRDkxNkY6MkQ3QzMyRTBEREIxNUQiLCJqb2JMb2NhdGlvbiI6InNvdXRoY2VudHJhbHVzIn0?api-version=2020-06-01 Body: undefined 2022-11-02T08:25:06.5107318Z ##[debug]Polling requests # 1 ==> 2022-11-02T08:26:06.5133421Z ##[debug]Batch request :: Batch URL: https://management.azure.com/batch/eyJqb2JJZCI6IkJhdGNoUmVxdWVzdFByb2Nlc3NpbmdKb2I6MkQtQjhDMDJERUY6MkQyMDM3OjJENDRGMzoyRDkxNkY6MkQ3QzMyRTBEREIxNUQiLCJqb2JMb2NhdGlvbiI6InNvdXRoY2VudHJhbHVzIn0?api-version=2020-06-01 # Requests: 0 2022-11-02T08:26:06.5136008Z ##[debug][GET]https://management.azure.com/batch/eyJqb2JJZCI6IkJhdGNoUmVxdWVzdFByb2Nlc3NpbmdKb2I6MkQtQjhDMDJERUY6MkQyMDM3OjJENDRGMzoyRDkxNkY6MkQ3QzMyRTBEREIxNUQiLCJqb2JMb2NhdGlvbiI6InNvdXRoY2VudHJhbHVzIn0?api-version=2020-06-01 2022-11-02T08:26:06.6499384Z ##[debug]Batch response :: Status: 200 Location: undefined Body: [object Object] 2022-11-02T08:26:06.6500149Z ##[debug]Status :: Pending 0 responses. | Completed 1 responses. 2022-11-02T08:26:06.6501293Z ##[debug]---------------------------------------------------------------------------------------------------- 2022-11-02T08:26:06.6501751Z ##[debug]Saving 23 completed responses. 2022-11-02T08:26:06.6502202Z ##[debug]---------------------------------------------------------------------------------------------------- 2022-11-02T08:26:06.6502853Z ##[debug]# of paginated calls: 0 2022-11-02T08:26:06.6503412Z ##[debug]Getting batch calls final responses # :: 23 2022-11-02T08:26:06.6506072Z ---------------------------------------------------------------------------------------------------- 2022-11-02T08:26:06.6506508Z Ignoring policy assignments : 2022-11-02T08:26:06.6508702Z ---------------------------------------------------------------------------------------------------- 2022-11-02T08:26:06.6509317Z An error has occured while parsing policyEvaluationDetails [[object Object]]. Error: SyntaxError: Unexpected token ( in JSON at position 109. 2022-11-02T08:26:06.6510318Z An error has occured while parsing policyEvaluationDetails [[object Object]]. Error: SyntaxError: Unexpected token ( in JSON at position 109. 2022-11-02T08:26:06.6537535Z ---------------------------------------------------------------------------------------------------- 2022-11-02T08:26:06.6538336Z No policy assignments ignored 2022-11-02T08:26:06.6539585Z ---------------------------------------------------------------------------------------------------- 2022-11-02T08:26:06.6561525Z ##[debug]---------------------------------------------------------------------------------------------------- 2022-11-02T08:26:06.6562565Z ##[debug]Saved 131 records to intermediate file. 2022-11-02T08:26:06.6563445Z ##[debug]---------------------------------------------------------------------------------------------------- 2022-11-02T08:26:06.6565359Z ##[debug]---------------------------------------------------------------------------------------------------- 2022-11-02T08:26:06.6566033Z ##[debug]Results saved. Time taken in ms:: 60447 2022-11-02T08:26:06.6566731Z ##[debug]---------------------------------------------------------------------------------------------------- 2022-11-02T08:26:06.6573014Z ##[debug]---------------------------------------------------------------------------------------------------- 2022-11-02T08:26:06.6573437Z ##[debug]Reading from json file 2022-11-02T08:26:06.6573881Z ##[debug]---------------------------------------------------------------------------------------------------- 2022-11-02T08:26:06.6574532Z ---------------------------------------------------------------------------------------------------- 2022-11-02T08:26:06.6575002Z Policy compliance scan report:: Total records : 131 2022-11-02T08:26:06.6575832Z ----------------------------------------------------------------------------------------------------
The text was updated successfully, but these errors were encountered:
This issue is idle because it has been open for 14 days with no activity.
Sorry, something went wrong.
No branches or pull requests
Hi,
We get
SyntaxError: Unexpected token ( in JSON at position 109
when running the action as per example. Workflow:Log excerpts:
The text was updated successfully, but these errors were encountered: