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 10 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
88 changes: 88 additions & 0 deletions .azurepipelines/build-shared-ios-1ES.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
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: $(Date:yyyyMMdd).$(Rev:r)
AnatolyPristensky marked this conversation as resolved.
Show resolved Hide resolved
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/
baseline:
baselineSet: default
baselineFile: $(Build.SourcesDirectory)/.gdn/.gdnbaselines
AnatolyPristensky marked this conversation as resolved.
Show resolved Hide resolved
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)
81 changes: 81 additions & 0 deletions .gdn/.gdnbaselines
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"hydrated": false,
"properties": {
"helpUri": "https://eng.ms/docs/microsoft-security/security/azure-security/cloudai-security-fundamentals-engineering/security-integration/guardian-wiki/microsoft-guardian/general/baselines",
"hydrationStatus": "This file does not contain identifying data. It is safe to check into your repo. To hydrate this file with identifying data, run `guardian hydrate --help` and follow the guidance."
},
"version": "1.0.0",
"baselines": {
"default": {
"name": "default",
"createdDate": "2024-03-07 11:48:31Z",
"lastUpdatedDate": "2024-03-07 11:48:31Z"
}
},
"results": {
"87e030e4d09c54daa4f7467e24c11f7bf009cc3484630fbe660c46ac140c60e3": {
"signature": "87e030e4d09c54daa4f7467e24c11f7bf009cc3484630fbe660c46ac140c60e3",
"alternativeSignatures": [],
"memberOf": [
"default"
],
"createdDate": "2024-03-07 11:48:31Z"
},
"d75452ccfbb7ec92065a28fbd998cfaca66865fb194c56b1dc274c9ff39a2072": {
"signature": "d75452ccfbb7ec92065a28fbd998cfaca66865fb194c56b1dc274c9ff39a2072",
"alternativeSignatures": [],
"memberOf": [
"default"
],
"createdDate": "2024-03-07 11:48:31Z"
},
"cbb2e80be04f8d7d741804ba6a7ee9e7b326d5c61658b24c02c9764135a5aac3": {
"signature": "cbb2e80be04f8d7d741804ba6a7ee9e7b326d5c61658b24c02c9764135a5aac3",
"alternativeSignatures": [],
"memberOf": [
"default"
],
"createdDate": "2024-03-07 11:48:31Z"
},
"ea72f4a7f1a755fa355c0a5c954482a10e8e65afa9548809f5a1d8cb54f4e2fc": {
"signature": "ea72f4a7f1a755fa355c0a5c954482a10e8e65afa9548809f5a1d8cb54f4e2fc",
"alternativeSignatures": [],
"memberOf": [
"default"
],
"createdDate": "2024-03-07 11:48:31Z"
},
"795b9d951e3e7148077611b53558e23ba91dc3324dcadd49d389b3ee420fe653": {
"signature": "795b9d951e3e7148077611b53558e23ba91dc3324dcadd49d389b3ee420fe653",
"alternativeSignatures": [],
"memberOf": [
"default"
],
"createdDate": "2024-03-07 11:48:31Z"
},
"84d6b4070d906335ee203c56e3194983b30f906302036b7bf58c2f5d15ba3a6a": {
"signature": "84d6b4070d906335ee203c56e3194983b30f906302036b7bf58c2f5d15ba3a6a",
"alternativeSignatures": [],
"memberOf": [
"default"
],
"createdDate": "2024-03-07 11:48:31Z"
},
"4fec7af554ec6860254e4681b3512bdb4233cb21980990507548f5c63ba0c681": {
"signature": "4fec7af554ec6860254e4681b3512bdb4233cb21980990507548f5c63ba0c681",
"alternativeSignatures": [],
"memberOf": [
"default"
],
"createdDate": "2024-03-07 11:48:31Z"
},
"8a33b1d7392ce1bbd783f101c03a0816205cef4d406c1bee78262df1467bef69": {
"signature": "8a33b1d7392ce1bbd783f101c03a0816205cef4d406c1bee78262df1467bef69",
"alternativeSignatures": [],
"memberOf": [
"default"
],
"createdDate": "2024-03-07 11:48:31Z"
}
}
}
Loading