diff --git a/.azure-pipelines/common-templates/checkout.yml b/.azure-pipelines/common-templates/checkout.yml index 1a01cf824bf..df2384a7934 100644 --- a/.azure-pipelines/common-templates/checkout.yml +++ b/.azure-pipelines/common-templates/checkout.yml @@ -10,6 +10,7 @@ steps: - checkout: self clean: true fetchDepth: 1 + submodules: true persistCredentials: true - task: PowerShell@2 @@ -32,6 +33,7 @@ steps: git pull git status + - task: securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@2 displayName: "Run CredScan" inputs: diff --git a/.azure-pipelines/common-templates/download-openapi-docs.yml b/.azure-pipelines/common-templates/download-openapi-docs.yml index 3623e0c7708..b0cb0461f33 100644 --- a/.azure-pipelines/common-templates/download-openapi-docs.yml +++ b/.azure-pipelines/common-templates/download-openapi-docs.yml @@ -4,12 +4,9 @@ parameters: - name: Branch type: string - default: "WeeklyOpenApiDocsDownload" - name: BaseBranch type: string - default: "dev" - name: BuildAgent - default: MsGraphBuildAgentsWindows displayName: Build Agent jobs: @@ -132,7 +129,7 @@ jobs: git add . git commit -m 'Weekly OpenApiDocs Download. [run ci]' git status - git push --set-upstream origin $(ComputeBranch.WeeklyBranch) + git push --set-upstream "https://$(GITHUB_TOKEN)@github.com/microsoftgraph/msgraph-sdk-powershell.git" $(ComputeBranch.WeeklyBranch) git status # References diff --git a/.azure-pipelines/generation-templates/generate-command-metadata-template.yml b/.azure-pipelines/generation-templates/generate-command-metadata-template.yml index d93f32adf35..dab78ec893b 100644 --- a/.azure-pipelines/generation-templates/generate-command-metadata-template.yml +++ b/.azure-pipelines/generation-templates/generate-command-metadata-template.yml @@ -21,5 +21,5 @@ steps: git status git add "$(System.DefaultWorkingDirectory)/src/Authentication/Authentication/custom/common/MgCommandMetadata.json" git commit -m 'Add generated MgCommandMetadata.json. [run ci]' - git push + git push "https://$(GITHUB_TOKEN)@github.com/microsoftgraph/msgraph-sdk-powershell.git" git status \ No newline at end of file diff --git a/.azure-pipelines/generation-templates/generate-helpdocs-template.yml b/.azure-pipelines/generation-templates/generate-helpdocs-template.yml index 4c92637e09b..a44188dd9ee 100644 --- a/.azure-pipelines/generation-templates/generate-helpdocs-template.yml +++ b/.azure-pipelines/generation-templates/generate-helpdocs-template.yml @@ -53,5 +53,5 @@ steps: targetType: inline script: | git status - git push --set-upstream origin $(ComputeBranch.DocsBranch) + git push --set-upstream "https://$(GITHUB_TOKEN)@github.com/microsoftgraph/msgraph-sdk-powershell.git" $(ComputeBranch.DocsBranch) git status \ No newline at end of file diff --git a/.azure-pipelines/weekly-generation.yml b/.azure-pipelines/weekly-generation.yml index 1b44713bd32..8743eeda6eb 100644 --- a/.azure-pipelines/weekly-generation.yml +++ b/.azure-pipelines/weekly-generation.yml @@ -11,14 +11,13 @@ parameters: variables: Branch: "WeeklyOpenApiDocsDownload" BaseBranch: "dev" - BUILDAGENT: ${{ parameters.BuildAgent }} - -pool: $(BUILDAGENT) + BuildAgent: ${{ parameters.BuildAgent }} +pool: $(BuildAgent) trigger: none pr: none schedules: - - cron: "0 12 * * WED" # Run every wednesday at noon UTC + - cron: "0 12 * * WED" # Run every Wednesday at noon UTC displayName: "Weekly PS SDK generation" branches: include: @@ -33,6 +32,7 @@ stages: parameters: Branch: $(Branch) BaseBranch: $(BaseBranch) + BuildAgent: $(BuildAgent) - stage: GenerateServiceModules displayName: Generate service modules