Azure devops 问题:“管道无效。作业 mac_agent:步骤 InstallAppleProvisioningProfile 输入 provProfileSecureFile 引用安全文件

Azure devops issue: "The pipeline is not valid. Job mac_agent: Step InstallAppleProvisioningProfile input provProfileSecureFile references secure file

我在 Azure 管道中有这个任务:

 - task: InstallAppleProvisioningProfile@1
    displayName: 'Install an Apple provisioning profile'
    inputs:
     provisioningProfileLocation: 'sourceRepository'
     provProfileSecureFile: '$(System.ArtifactsDirectory)/ios_artifacts/InHouse_com.xxxx.xxxxx.mobileprovision'

此路径中确实存在该文件, 但是在执行管道时我得到这个 error/warning :

当我手动按下按钮时它会继续,
我怎样才能避免这种情况?

我们在使用资源之前需要授权,我们需要点击Authorize resources按钮进行授权,然后我们才能在管道中使用该文件。

或打开项目设置->设置->勾选non-release管道的限制作业授权范围到当前项目选项和 将作业授权范围限制为引用的 Azure DevOps 存储库。

请参阅此doc了解更多详情。