Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Pipeline] Migrate to 1ES #1030

Merged
merged 17 commits into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
121 changes: 121 additions & 0 deletions .azurepipelines/build-shared-ios-1ES.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
trigger:
- master
- develop
pr:
- master
- develop
resources:
repositories:
- repository: self
type: git
ref: refs/heads/develop
- repository: 1ESPipelineTemplates
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release
name: $(Build.SourceBranchName)_$(date:yyyyMMdd)$(rev:.r)
variables:
- name: EOCompliance-Mac
value: true
- name: XCODE_PATH
value: /Applications/Xcode_13.2.1.app/Contents/Developer
extends:
${{ if eq(variables['Build.SourceBranch'], 'refs/heads/master') }}:
template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
${{ else }}:
template: v1/1ES.Unofficial.PipelineTemplate.yml@1ESPipelineTemplates
parameters:
pool:
name: Azure Pipelines
image: macos-latest
os: macOS
customBuildTags:
- ES365AIMigrationTooling-BulkMigrated
sdl:
sourceAnalysisPool: 1ES-PT-Windows-2022
eslint:
enableExclusions: true
exclusionPatterns: |
TestApp/
TestApp34/
DemoApp/
credscan:
suppressionsFile: $(Build.SourcesDirectory)/.config/CredScanSuppressions.json
stages:
- stage: stage
jobs:
- job: sdkBuildJob
displayName: MacOs
cancelTimeoutInMinutes: 1
templateContext:
outputs:
- output: pipelineArtifact
displayName: 'Publish Artifact: framework'
path: '$(Build.ArtifactStagingDirectory)'
artifactName: zip
steps:
- checkout: self
fetchTags: false
- task: Bash@3
displayName: Install AppCenterReactNativeShared Pods
inputs:
filePath: AppCenterReactNativeShared/ios/post-clone.sh
workingDirectory: AppCenterReactNativeShared/ios
- task: Bash@3
displayName: Select Xcode $(XCODE_PATH)
inputs:
targetType: inline
script: sudo xcode-select -s '$(XCODE_PATH)'
- task: Bash@3
displayName: Build xc-framework
inputs:
targetType: inline
script: |
export SRCROOT=`pwd`
./build-xcframework.sh
workingDirectory: AppCenterReactNativeShared/ios/
- task: Bash@3
displayName: Zip framework
inputs:
filePath: AppCenterReactNativeShared/zip-framework.sh
workingDirectory: AppCenterReactNativeShared
- task: CopyFiles@2
displayName: Copy artifact
inputs:
SourceFolder: $(Build.SourcesDirectory)/AppCenterReactNativeShared/Products/
Contents: AppCenter-SDK-ReactNative-iOS-Pod-*.zip
TargetFolder: $(Build.ArtifactStagingDirectory)

- stage: APIScan
dependsOn: Stage
pool:
name: 1ES-PT-Windows-2022
os: windows
variables:
"agent.source.skip": true
jobs:
- job: APIScan
steps:
- task: DownloadPipelineArtifact@2
displayName: Download Build Artifacts for APIScan
inputs:
artifactName: zip
targetPath: '$(Agent.BuildDirectory)/zip'
- task: AzureKeyVault@2
inputs:
azureSubscription: 'AC - Dev Infra & Build Pool'
KeyVaultName: 'mobile-center-sdk'
SecretsFilter: 'appcenter-sdk-managed-identity-clientid'
RunAsPreJob: false
- task: APIScan@2
displayName: 'Run APIScan'
inputs:
softwareFolder: '$(Agent.BuildDirectory)\zip'
softwareName: 'appcenter-sdk-react-native'
softwareVersionNum: '$(Build.BuildId)'
isLargeApp: false
toolVersion: 'Latest'
verbosityLevel: verbose
condition: and(succeeded(), ne(variables['DisableAPIScan'], 'true'))
env:
AzureServicesAuthConnectionString: 'runAs=App;AppId=$(appcenter-sdk-managed-identity-clientid)'
22 changes: 22 additions & 0 deletions .config/CredScanSuppressions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"tool": "Credential Scanner",
"suppressions": [
{
"file": "/DemoApp/android/keystores/debug.keystore.properties",
"_justification": "CSCAN-GENERAL0060 used only in DemoApp"
},
{
"file": "/TestApp/android/keystores/debug.keystore.properties",
"_justification": "CSCAN-GENERAL0060 used only in DemoApp"
},
{
"file": "/TestApp34/android/keystores/debug.keystore.properties",
"_justification": "CSCAN-GENERAL0060 used only in DemoApp"
},
{
"file": "/TestAppTypescript/android/keystores/debug.keystore.properties",
"_justification": "CSCAN-GENERAL0060 used only in DemoApp"
}
]
}

47 changes: 0 additions & 47 deletions .github/workflows/codeql.yml

This file was deleted.