Skip to content

Bicep Repository Scans Failing in Checkov, IaC File Scanner, and Template Analyzer #137

@weekendclimber

Description

@weekendclimber

Edited: added screenshot of errors from build summary page.

I'm having issues with the task running in my environment. I've got Bicep files that I would like to have scanned, but it seems that the IaC category scanners all fail in various modes.

In my pipeline I have the following:

- task: MicrosoftSecurityDevOps@1
  displayName: "Run Microsoft Security Scan"
  inputs:
    policy: 'azuredevops'
    categories: 'IaC'
    publish: false
    artifactName: 'CodeAnalysisLogs'

It appears that Microsoft Defender for Cloud picks up the runs, unless I don't understand the dashboard in Azure fully. Not sure what is failing within the task. I believe this is running within a container, which is not publicly available like the task code is on GitHub. Otherwise, I would dig in and see what is going on with it.

See screenshots below.

Microsoft Defender for Cloud Dashboard:
Image

Checkov Results:
Image

IaC File Scanner Results:
Image

Template Analyzer Results:
Image

Final Results:
Image

Azure DevOps Build Summary:
Image

Raw Task Log:
rawlog.txt

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions