Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
54 changes: 54 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Bug report
description: Report a reproducible problem in a .NET connector sample.
title: "[Bug]: "
labels: [bug]
body:
- type: markdown
attributes:
value: Do not include credentials, connection keys, callback URLs, `local.settings.json`, tenant/subscription/resource identifiers, or real connector payloads. Redact logs and screenshots. Report security vulnerabilities privately at https://msrc.microsoft.com/report/.
- type: input
id: sample
attributes:
label: Sample path
description: Connector and delivery folder, or "repo-wide".
placeholder: office365App/polling
validations:
required: true
- type: dropdown
id: stage
attributes:
label: Where does it fail?
options:
- Restore or build
- Provisioning or deployment (azd)
- Connection or trigger setup
- Event delivery or function execution
- Documentation
validations:
required: true
- type: textarea
id: environment
attributes:
label: Environment
description: OS, .NET SDK, Azure Functions Core Tools, azd, Azure CLI, and sample commit. State whether it ran locally or in Azure.
validations:
required: true
- type: textarea
id: reproduction
attributes:
label: Steps to reproduce
description: Commands and steps using placeholders and test data.
validations:
required: true
- type: textarea
id: behavior
attributes:
label: Expected and actual behavior
validations:
required: true
- type: textarea
id: logs
attributes:
label: Redacted error output
description: Only the relevant error. Never paste settings files, payloads, or authentication output.
render: text
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Report a security vulnerability
url: https://msrc.microsoft.com/report/
about: Report security issues privately to the Microsoft Security Response Center, not as public issues.
- name: Azure Functions connectors documentation
url: https://learn.microsoft.com/azure/azure-functions/
about: Product questions and general Azure Functions guidance.
30 changes: 30 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Feature request
description: Suggest an improvement to the .NET connector samples or docs.
title: "[Feature]: "
labels: [enhancement]
body:
- type: markdown
attributes:
value: Do not include credentials, account or resource identifiers, callback URLs, or real connector data.
- type: input
id: sample
attributes:
label: Sample or connector
description: Existing sample path, or a proposed connector, trigger operation, and polling/webhook mode.
placeholder: sharepointApp/webhook
validations:
required: true
- type: textarea
id: problem
attributes:
label: Problem or scenario
description: What developer scenario is missing or unclear today?
validations:
required: true
- type: textarea
id: proposal
attributes:
label: Proposed improvement
description: Expected behavior or documentation change, and any permissions, deployment, or connector limitations.
validations:
required: true
20 changes: 20 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
## Summary

<!-- What changed and why. Link related issues, for example: Fixes #123. -->

## Affected samples

<!-- Sample paths and delivery modes (polling/webhook), or "repo-wide". -->

## Validation

<!-- Commands run and results, for example `dotnet restore` and `dotnet build` for `functions-connectors-net.slnx` (includes NuGet audit).
Manual trigger testing: state local or Azure and the result, or "not run". Use test data only. -->

## Checklist

- [ ] Validation passed, or I explained above why it does not apply.
- [ ] Each polling/webhook sample still restores, builds, and deploys independently.
- [ ] Updated affected READMEs and the `Unreleased` section of CHANGELOG.md.
- [ ] Added Microsoft Learn metadata to each new sample README.
- [ ] Included no credentials, `local.settings.json`, `.azure` environments, build output, real payloads, or unredacted logs/screenshots.
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
updates:
- package-ecosystem: "dotnet-sdk"
directory: "/"
schedule:
interval: "weekly"
day: "wednesday"
ignore:
- dependency-name: "*"
update-types:
- "version-update:semver-major"
- "version-update:semver-minor"
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
build:
name: Build and analyze
runs-on: ubuntu-24.04
timeout-minutes: 20
steps:
- name: Check out source
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Set up .NET
uses: actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1 # v5
with:
dotnet-version: '10.0.x'

- name: Restore and audit dependencies
run: dotnet restore functions-connectors-net.slnx --source https://api.nuget.org/v3/index.json -p:NuGetAudit=true -p:NuGetAuditMode=all -p:NuGetAuditLevel=low -warnaserror:NU1900,NU1901,NU1902,NU1903,NU1904

- name: Build and run SDK analyzers
run: dotnet build functions-connectors-net.slnx --configuration Release --no-restore -p:EnableNETAnalyzers=true -warnaserror
52 changes: 52 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: CodeQL

on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
analyze:
name: Analyze C#
runs-on: ubuntu-24.04
timeout-minutes: 30
permissions:
contents: read
security-events: write
steps:
- name: Check out source
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Set up .NET
uses: actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1 # v5
with:
dotnet-version: '10.0.x'

- name: Initialize CodeQL
uses: github/codeql-action/init@915412ff23e8b7659517e607487dbeae018f2934 # v4
with:
languages: csharp
build-mode: manual
queries: security-and-quality

- name: Restore dependencies
run: dotnet restore functions-connectors-net.slnx --source https://api.nuget.org/v3/index.json

- name: Build for CodeQL
run: dotnet build functions-connectors-net.slnx --configuration Release --no-restore --no-incremental

- name: Analyze code
uses: github/codeql-action/analyze@915412ff23e8b7659517e607487dbeae018f2934 # v4
with:
category: /language:csharp
19 changes: 19 additions & 0 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Dependency Review

on:
pull_request:
branches: [main]

permissions:
contents: read
pull-requests: read

jobs:
dependency-review:
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- name: Review dependency changes
uses: actions/dependency-review-action@a1d282b36b6f3519aa1f3fc636f609c47dddb294 # v5.0.0
with:
fail-on-severity: high
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Changelog

Notable changes to this project are documented in this file.

## Unreleased

13 changes: 13 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide
a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions
provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# Azure Functions Connector Samples (.NET)

[![CI](https://github.com/Azure-Samples/functions-connectors-net/actions/workflows/ci.yml/badge.svg)](https://github.com/Azure-Samples/functions-connectors-net/actions/workflows/ci.yml)

.NET samples for the [Azure Functions Connector Samples](https://github.com/Azure-Samples/functions-connectors/) repo, using the [Azure Connectors .NET SDK](https://github.com/Azure/Connectors-NET-SDK) and the [Connector trigger extension](https://github.com/Azure/azure-functions-connector-extension) to receive events from Microsoft 365, SharePoint, Teams, and other connectors.

See [CONTRIBUTING.md](CONTRIBUTING.md) to contribute and [CHANGELOG.md](CHANGELOG.md) for notable changes.

## Samples

| Guide | Connector |
Expand Down