name: Compliance-$(Build.BuildId)

trigger: none
pr: none

schedules:
  # Chrontab format, see https://en.wikipedia.org/wiki/Cron
  # this is in UTC
  - cron: '0 13 * * *'
    branches:
      include:
      - master

resources:
  repositories:
  - repository: ComplianceRepo
    type: github
    endpoint: ComplianceGHRepo
    name: PowerShell/compliance
    ref: master

variables:
  - name: DOTNET_CLI_TELEMETRY_OPTOUT
    value: 1
  - name: POWERSHELL_TELEMETRY_OPTOUT
    value: 1
  - name: NugetSecurityAnalysisWarningLevel
    value: none
  # Defines the variables AzureFileCopySubscription, StorageAccount, StorageAccountKey, StorageResourceGroup, StorageSubscriptionName
  - group: 'Azure Blob variable group'
  # Defines the variables CgPat, CgOrganization, and CgProject
  - group: 'ComponentGovernance'

stages:
  - stage: compliance
    dependsOn: []
    jobs:
      - template: templates/compliance/compliance.yml
        parameters:
          parentJobs: []
      - template: templates/compliance/generateNotice.yml
        parameters:
          parentJobs: []

