Skip to content

Commit

Permalink
[ci] Fix SDL Sources Analysis for PRs from forks (#8785)
Browse files Browse the repository at this point in the history
The recent 1ES pipeline template migration added a new source code
analysis stage that is failing on PR builds from forks.  We should be
able to fix this by skipping AzDO build tagging and monodroid scanning
for such builds.
  • Loading branch information
pjcollins authored Mar 4, 2024
1 parent db49513 commit aea89e1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build-tools/automation/azure-pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,15 @@ extends:
os: windows
sourceRepositoriesToScan:
include:
- repository: monodroid
- ${{ if ne(variables['System.PullRequest.IsFork'], 'True') }}:
- repository: monodroid
exclude:
- repository: yaml-templates
- repository: maui
suppression:
suppressionFile: $(Build.SourcesDirectory)\.gdn\.gdnsuppress
settings:
skipBuildTagsForGitHubPullRequests: true
stages:
- template: /build-tools/automation/yaml-templates/build-macos.yaml@self

Expand Down

0 comments on commit aea89e1

Please sign in to comment.