【问题标题】:Azure Devops Pipeline NPM AuditAzure Devops Pipeline NPM 审计
【发布时间】:2021-07-12 08:00:27
【问题描述】:

我正在尝试修改 Azure 管道 yaml 文件。目前它有一项工作做得很好

 - task: Npm@1
          displayName: 'Audit npm packages in dependencies group'
          inputs:
            command: custom
            customCommand: ${{ parameters.npmAuditCommand }}
            verbose: false
            workingDir: ${{ parameters.solutionFolder }}

自定义命令是:

default: 'run audit --only=prod --audit-level=moderate'

如果此任务失败,我试图实现的目标是停止运行,并有一个手动触发器,允许团队评估威胁/影响,然后批准/解雇。并将其包含在 yaml 文件中

在理想情况下,审核会通过,但在现有的旧项目中,我们不得不削减遗留代码。

【问题讨论】:

    标签: azure-devops azure-pipelines-yaml


    【解决方案1】:
    - task: Npm@1
         displayName: 'Audit Application'
         inputs:
           workingDir: $(buildRoot)
           command: custom
           customCommand: 'run audit'
    

    【讨论】:

      猜你喜欢
      • 2021-11-06
      • 2022-12-01
      • 1970-01-01
      • 2022-01-24
      • 1970-01-01
      • 1970-01-01
      • 2020-06-11
      • 2021-05-05
      • 2020-08-30
      相关资源
      最近更新 更多