Skip to content

ESLint + Unrecognized argument key: Extensions #151

@abjinugu

Description

@abjinugu

Azure Pipeline Task

- task: MicrosoftSecurityDevOps@1
    displayName: 'Run Security Scan'
    inputs:
      categories: 'secrets, artifacts, containers, code'
      tools: 'trivy,eslint' 
      artifactName: 'CodeAnalysisLogs'
      config: '$(Build.SourcesDirectory)/.gdn/msdo-config-linux.gdnconfig'
      break: false

gdnconfig

{
  "tools": [
    {
      "tool": {
        "name": "trivy",
        "version": "latest"
      },
      "arguments": {
        "Action": "filesystem",
        "Target": "src/backend/api",
        "ExitCode": 100,
        "TableFormat": "sarif",
        "Scanners": "vuln"
      }
    },
    {
      "tool": {
        "name": "eslint",
        "version": "latest"
      },
      "arguments": {
        "ExclusionPatterns": "*.d.ts",
        "Targets": "src/ui"
      }
    }
  ]
}

error

##[error]Error running tool 2 of 2: eslint
##[error]UnrecognizedArgumentException: Unrecognized argument key: Extensions
##[error]BreakException: Guardian detected one or more breaking results.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions