user63898
user63898

Reputation: 30885

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

i have this task in azure pipeline :

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

the file do exist in this path, but when executing the pipeline I'm getting this error/warning : enter image description here

when i manually press the button its continue,
how can I avoid this?

Upvotes: 1

Views: 5113

Answers (1)

Vito Liu
Vito Liu

Reputation: 8278

We should authorize the resource before we use it, we need click the button Authorize resources to authorize, then we can use the file in the pipeline.

Or open project settings->Settings->check the option Limit job authorization scope to current project for non-release pipelines and Limit job authorization scope to referenced Azure DevOps repositories.

Please refer this doc for more details.

enter image description here

Upvotes: 1

Related Questions