Skip to content
Merged
15 changes: 3 additions & 12 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,12 @@
name: "CodeQL Advanced"

on:
# Scan on pushes to main only.
push:
branches:
- main

# Scan on PRs that target matching branches.
branches: [ "release/7.0" ]
pull_request:
branches:
- main
- feat/**
- dev/**

# Scan weekly on Saturdays at 23:33 UTC
branches: [ "release/7.0" ]
schedule:
- cron: '33 23 * * 6'
- cron: '15 23 * * 6'
Comment thread
mdaigle marked this conversation as resolved.

jobs:
analyze:
Expand Down
40 changes: 16 additions & 24 deletions eng/pipelines/dotnet-sqlclient-ci-package-reference-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,10 @@
# It runs via CI push triggers and schedules and uses the Release build
# configuration:
#
# - Commits to GitHub main
# - Commits to ADO internal/main
# - Weekdays at 03:00 UTC on GitHub main
# - Thursdays at 07:00 UTC on ADO internal/main
#
# GOTCHA: This pipeline definition is triggered by GitHub _and_ ADO CI. We are
Comment thread
cheenamalhotra marked this conversation as resolved.
# able to define different triggers and schedules using branch filters:
#
# - Only the GitHub repo has a 'main' branch, so its presence indicates that
# the pipeline run was triggered via GitHub.
#
# - Only the ADO repo has an 'internal/main' branch.
# - Commits to GitHub release/7.0
# - Commits to ADO internal/release/7.0
# - Sundays at 05:30 UTC on GitHub release/7.0
# - Sundays at 06:30 UTC on ADO internal/release/7.0
#
# Changes are batched together to ensure that the pipline never runs
# concurrently.
Expand Down Expand Up @@ -55,29 +47,29 @@ trigger:

branches:
include:
# GitHub main branch.
- main
# GitHub release/7.0 branch.
- release/7.0

# ADO internal/main branch.
- internal/main
# ADO internal/release/7.0 branch.
- internal/release/7.0

# Trigger this pipline on a schedule.
schedules:

# GitHub main on weekdays
- cron: '0 3 * * Mon-Fri'
displayName: Weekday Run (Release Config)
# GitHub release/7.0 on Sundays (1 hour after release/6.1's 04:30 UTC run).
Comment thread
cheenamalhotra marked this conversation as resolved.
- cron: '30 5 * * Sun'
displayName: Sunday Run (Release Config)
branches:
Comment thread
mdaigle marked this conversation as resolved.
include:
- main
- release/7.0
always: true

# ADO internal/main on Thursdays.
- cron: '0 7 * * Thu'
displayName: Thursday Run (Release Config)
# ADO internal/release/7.0 on Sundays (1 hour after release/6.1's 05:30 UTC run).
- cron: '30 6 * * Sun'
displayName: Sunday Run (Release Config)
branches:
include:
- internal/main
- internal/release/7.0
always: true

# Pipeline parameters, visible in the Azure DevOps UI.
Expand Down
40 changes: 16 additions & 24 deletions eng/pipelines/dotnet-sqlclient-ci-project-reference-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,10 @@
# It runs via CI push triggers and schedules and uses the Release build
# configuration:
#
# - Commits to GitHub main
# - Commits to ADO internal/main
# - Weekdays at 01:00 UTC on GitHub main
# - Thursdays at 05:00 UTC on ADO internal/main
#
# GOTCHA: This pipeline definition is triggered by GitHub _and_ ADO CI. We are
# able to define different triggers and schedules using branch filters:
#
# - Only the GitHub repo has a 'main' branch, so its presence indicates that
# the pipeline run was triggered via GitHub.
#
# - Only the ADO repo has an 'internal/main' branch.
# - Commits to GitHub release/7.0
# - Commits to ADO internal/release/7.0
# - Sundays at 05:00 UTC on GitHub release/7.0
# - Sundays at 06:00 UTC on ADO internal/release/7.0
#
# Changes are batched together to ensure that the pipline never runs
# concurrently.
Expand Down Expand Up @@ -55,29 +47,29 @@ trigger:

branches:
include:
# GitHub main branch.
- main
# GitHub release/7.0 branch.
- release/7.0

# ADO internal/main branch.
- internal/main
# ADO internal/release/7.0 branch.
- internal/release/7.0

# Trigger this pipline on a schedule.
schedules:

# GitHub main on weekdays
- cron: '0 1 * * Mon-Fri'
displayName: Weekday Run (Release Config)
# GitHub release/7.0 on Sundays (1 hour after release/6.1's 04:00 UTC run).
- cron: '0 5 * * Sun'
displayName: Sunday Run (Release Config)
branches:
Comment thread
mdaigle marked this conversation as resolved.
include:
- main
- release/7.0
always: true

# ADO internal/main on Thursdays.
- cron: '0 5 * * Thu'
displayName: Thursday Run (Release Config)
# ADO internal/release/7.0 on Sundays (1 hour after release/6.1's 05:00 UTC run).
- cron: '0 6 * * Sun'
displayName: Sunday Run (Release Config)
branches:
include:
- internal/main
- internal/release/7.0
always: true

# Pipeline parameters, visible in the Azure DevOps UI.
Expand Down
4 changes: 2 additions & 2 deletions eng/pipelines/sqlclient-pr-package-ref-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# - Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider
#
# It is triggered by pushes to PRs that target dev/ and feature/ branches, and
# the main branch in GitHub.
# the release/7.0 branch in GitHub.
#
# It maps to the "PR-SqlClient-Package" pipeline in the Public project:
#
Expand All @@ -32,7 +32,7 @@ pr:
# GitHub repo branch targets that will trigger PR validation builds.
- dev/*
- feat/*
Comment thread
cheenamalhotra marked this conversation as resolved.
Outdated
- main
- release/7.0

paths:
include:
Expand Down
4 changes: 2 additions & 2 deletions eng/pipelines/sqlclient-pr-project-ref-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# - Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider
#
# It is triggered by pushes to PRs that target dev/ and feature/ branches, and
# the main branch in GitHub.
# the release/7.0 branch in GitHub.
#
# It maps to the "PR-SqlClient-Project" pipeline in the Public project:
#
Expand All @@ -32,7 +32,7 @@ pr:
# GitHub repo branch targets that will trigger PR validation builds.
- dev/*
- feat/*
- main
- release/7.0

paths:
include:
Expand Down
Loading