diff --git a/scripts/azure-templates-stages.yml b/scripts/azure-templates-stages.yml index 10430b8b..ec697999 100644 --- a/scripts/azure-templates-stages.yml +++ b/scripts/azure-templates-stages.yml @@ -492,7 +492,7 @@ stages: artifactName: api-diff pathToPublish: '$(Build.SourcesDirectory)\output\api-diff' - - ${{ if and(eq(variables['System.TeamProject'], 'devdiv'), eq(parameters.isBuildPipeline, 'true')) }}: + - ${{ if and(eq(variables['System.TeamProject'], 'devdiv'), eq(parameters.isBuildPipeline, 'true'), ne(variables['System.PullRequest.IsFork'], 'true')) }}: - stage: signing displayName: Sign NuGets dependsOn: package @@ -504,7 +504,7 @@ stages: ${{ if not(or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), startsWith(variables['Build.SourceBranch'], 'refs/heads/patch/'))) }}: signType: 'Test' - - ${{ if and(eq(variables['System.TeamProject'], 'devdiv'), eq(parameters.isBuildPipeline, 'true')) }}: + - ${{ if and(eq(variables['System.TeamProject'], 'devdiv'), eq(parameters.isBuildPipeline, 'true'), ne(variables['System.PullRequest.IsFork'], 'true')) }}: - stage: sbom displayName: 'Software Bill of Materials' dependsOn: signing