gpt4 book ai didi

azure-devops - Azure Devops 管道 NPM 审计

转载 作者:行者123 更新时间:2023-12-05 04:47:52 25 4
gpt4 key购买 nike

我正在尝试修改 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 文件中

在理想的世界中,审计会通过,但在一个旧的现有项目上,我们不得不削减遗留代码。

最佳答案

- task: Npm@1
displayName: 'Audit Application'
inputs:
workingDir: $(buildRoot)
command: custom
customCommand: 'run audit'

关于azure-devops - Azure Devops 管道 NPM 审计,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68343873/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com