Skip to content

Commit 609b460

Browse files
committed
Merge main
2 parents 9884ecd + 9bce6ad commit 609b460

File tree

367 files changed

+16140
-18514
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

367 files changed

+16140
-18514
lines changed

.azuredevops/policies/approvercountpolicy.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
# that govern how PRs are approved in general. The settings here dictate how
44
# the validator behaves, and it can also prevent PRs from completing.
55
#
6-
# Suggested by Merlinbot (https://sqlclientdrivers.visualstudio.com/ADO.Net/_git/dotnet-sqlclient/pullrequest/4982)
6+
# https://eng.ms/docs/coreai/devdiv/one-engineering-system-1es/1es-docs/policy-service/policy-as-code/approver-count-policy-overview
77

88
name: approver_count
9-
description: Approver count policy for dotnet-sqlclient
9+
description: Approver count policy for dotnet-sqlclient [internal/main]
1010
resource: repository
1111
where:
1212
configuration:
@@ -22,8 +22,5 @@ configuration:
2222
resetRejectionsOnSourcePush: false
2323
blockLastPusherVote: true
2424
branchNames:
25-
- refs/heads/internal/main
26-
- refs/heads/internal/release/6.0
27-
- refs/heads/internal/release/5.2
28-
- refs/heads/internal/release/5.1
29-
displayName: dotnet-sqlclient Approver Count Policy
25+
- internal/main
26+
displayName: dotnet-sqlclient Approver Count Policy [internal/main]

.config/CredScanSuppressions.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@
1212
{
1313
"file": "doc/samples/SqlConnectionStringBuilder.cs",
1414
"justification": "Documentation could include sample data and can be ignored"
15+
},
16+
{
17+
"file": "src/Microsoft.Data.SqlClient/tests/UnitTests/Fixtures/AlwaysEncrypted/NativeColumnEncryptionKeyCertificateBaselineFixture.cs",
18+
"justification": "Test projects should be skipped"
19+
},
20+
{
21+
"file": "src/Microsoft.Data.SqlClient/tests/UnitTests/Resources/AlwaysEncrypted/NativeColumnEncryptionKeyBaseline/Certificate.pfx",
22+
"justification": "Test projects should be skipped"
1523
}
1624
]
1725
}

.github/workflows/codeql.yml

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL Advanced"
13+
14+
on:
15+
push:
16+
branches: [ "main" ]
17+
pull_request:
18+
branches: [ "main" ]
19+
schedule:
20+
- cron: '33 23 * * 6'
21+
22+
jobs:
23+
analyze:
24+
name: Analyze (${{ matrix.language }})
25+
# Runner size impacts CodeQL analysis time. To learn more, please see:
26+
# - https://gh.io/recommended-hardware-resources-for-running-codeql
27+
# - https://gh.io/supported-runners-and-hardware-resources
28+
# - https://gh.io/using-larger-runners (GitHub.com only)
29+
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
30+
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
31+
permissions:
32+
# required for all workflows
33+
security-events: write
34+
35+
# required to fetch internal or private CodeQL packs
36+
packages: read
37+
38+
# only required for workflows in private repositories
39+
actions: read
40+
contents: read
41+
42+
strategy:
43+
fail-fast: false
44+
matrix:
45+
include:
46+
- language: csharp
47+
build-mode: manual
48+
# CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'rust', 'swift'
49+
# Use `c-cpp` to analyze code written in C, C++ or both
50+
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
51+
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
52+
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
53+
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
54+
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
55+
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
56+
steps:
57+
- name: Checkout repository
58+
uses: actions/checkout@v4
59+
60+
- name: Setup .NET Core SDK
61+
uses: actions/[email protected]
62+
with:
63+
# TODO: Update this to .NET 10 once PR #3686 is complete.
64+
# TODO: Replace this with global-json-file once PR #3797 is complete.
65+
dotnet-version: 9.x
66+
dotnet-quality: ga
67+
#global-json-file: global.json
68+
69+
# Initializes the CodeQL tools for scanning.
70+
- name: Initialize CodeQL
71+
uses: github/codeql-action/init@v4
72+
with:
73+
languages: ${{ matrix.language }}
74+
build-mode: ${{ matrix.build-mode }}
75+
# If you wish to specify custom queries, you can do so here or in a config file.
76+
# By default, queries listed here will override any specified in a config file.
77+
# Prefix the list here with "+" to use these queries and those in the config file.
78+
79+
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
80+
# queries: security-extended,security-and-quality
81+
82+
# If the analyze step fails for one of the languages you are analyzing with
83+
# "We were unable to automatically build your code", modify the matrix above
84+
# to set the build mode to "manual" for that language. Then modify this step
85+
# to build your code.
86+
# ℹ️ Command-line programs to run using the OS shell.
87+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
88+
- name: Run manual build steps
89+
if: matrix.build-mode == 'manual'
90+
shell: bash
91+
run: |
92+
mkdir packages
93+
dotnet build src/
94+
95+
- name: Perform CodeQL Analysis
96+
uses: github/codeql-action/analyze@v4
97+
with:
98+
category: "/language:${{matrix.language}}"

.github/workflows/stale.yml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
name: Close Stale Issues and PRs
2+
3+
on:
4+
schedule:
5+
# Run daily at 2:00 AM UTC
6+
- cron: "0 2 * * *"
7+
workflow_dispatch: # Allow manual triggering
8+
9+
permissions:
10+
issues: write
11+
pull-requests: write
12+
contents: read
13+
14+
jobs:
15+
close-stale:
16+
runs-on: ubuntu-latest
17+
name: Close stale Issues and PRs
18+
19+
steps:
20+
- name: Close stale Issues and PRs
21+
# Uses action https://github.com/actions/stale
22+
uses: actions/stale@v10
23+
with:
24+
repo-token: ${{ secrets.GITHUB_TOKEN }}
25+
26+
# Labels to identify stale issues
27+
stale-issue-label: "stale"
28+
stale-pr-label: "stale"
29+
30+
# Marks issues and PRs as stale after 30 days of inactivity
31+
days-before-stale: 30
32+
33+
# Close issues after 7 days of inactivity once marked as stale
34+
days-before-close: 7
35+
36+
# Issues
37+
38+
# Labels that indicate an issue needs more info or is waiting for customer
39+
only-issue-labels: "Needs More Info :information_source:,Waiting for Customer :hourglass_flowing_sand:"
40+
41+
stale-issue-message: |
42+
This issue has been marked as requiring more information or is waiting for a customer response. It has not been updated for more than 30 days.
43+
44+
If you have additional information or would like to provide an update, please respond to this issue. Otherwise, it will be closed automatically in 7 days.
45+
46+
# Message to post when closing the issue
47+
close-issue-message: |
48+
This issue has been automatically closed due to inactivity. It was labeled as stale, and has not been updated since then.
49+
50+
If you believe this issue is still relevant and needs attention, please feel free to reopen it with the additional information requested, or create a new issue with updated details.
51+
52+
Thank you for your contribution to the Microsoft.Data.SqlClient project!
53+
54+
# Don't close issues that have these labels (exemptions)
55+
exempt-issue-labels: "P0,P1,P2"
56+
57+
# Pull Requests
58+
59+
# Message to post when marking the PR as stale
60+
stale-pr-message: |
61+
This pull request has been marked as stale due to inactivity for more than 30 days.
62+
63+
If you would like to keep this pull request open, please provide an update or respond to any comments. Otherwise, it will be closed automatically in 7 days.
64+
65+
# Message to post when closing the PR
66+
close-pr-message: |
67+
This pull request has been automatically closed due to inactivity. It was labeled as stale, and has not been updated since then.
68+
69+
If you believe this pull request is still relevant and needs attention, please feel free to reopen it or create a new pull request with updated changes.
70+
71+
Thank you for your contribution to the Microsoft.Data.SqlClient project!
72+
73+
# Don't mark draft PRs as stale
74+
exempt-draft-pr: true
75+
76+
# Enable debug logging
77+
debug-only: false
78+
79+
# Remove stale label when closing (cleanup)
80+
remove-stale-when-updated: true
81+
82+
# Limit the number of operations per run to avoid API rate limits
83+
operations-per-run: 50
84+
85+
# Enable ascending order (oldest first)
86+
ascending: true

0 commit comments

Comments
 (0)