# 3.0.9

**Release Date:** January 9, 2026

---

## ✨ New Features

### GitHub Actions

#### Dependabot Auto-Approve and Auto-Merge Workflow

**Workflow:** `.github/workflows/dependabot-auto-approve.yml`

Automated Dependabot pull request approval and merge using GitHub Actions following official GitHub documentation.

**Key Features:**

- ✅ **Automatic PR Detection** - Identifies all Dependabot pull requests
- ✅ **Selective Approval** - Approves patch and minor version updates automatically
- ✅ **Auto-Merge Configuration** - Enables squash merge strategy for approved PRs
- ✅ **Safety Filters** - Excludes major version updates from auto-merge

**Benefits:**

- 🚀 Reduces manual approval burden for dependency updates
- 🔄 Accelerates dependency updates through automation
- 🎯 Maintains safety by excluding major version updates
- ✨ Integrates with existing Merge Gatekeeper workflow

**Documentation:**

- [Automating Dependabot with GitHub Actions](https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions)

---

#### Merge Gatekeeper Workflow for PR Checks

**Workflow:** `.github/workflows/merge-gatekeeper.yml`

Comprehensive pull request validation workflow ensuring all Azure DevOps checks pass before merging.

**Key Features:**

- ✅ **Commit Status Verification** - Monitors all commit statuses and checks
- ✅ **Check Suite Integration** - Validates all checks from external services
- ✅ **Automated Gating** - Prevents merge until all checks pass
- ✅ **Detailed Reporting** - Provides clear status updates on PR

**Benefits:**

- 🎯 Ensures code quality before merge
- 🔒 Prevents broken builds reaching main
- 📊 Provides visibility into check status
- ✨ Automates status verification

---

### CLI Tools

#### TestAuthenticationService Enhancement

**Package:** `SAIF.DevTools.CLI`

Enhanced TestAuthenticationService with asynchronous cache clearing capability for improved testing scenarios.

**New Methods:**

- `ClearCacheAsync()` - Asynchronously clears the authentication cache

**Benefits:**

- 🚀 Supports async/await patterns in test code
- 🔄 Improves test isolation and cleanup
- 📚 Enables more sophisticated testing scenarios

---

### Configuration

#### NuGet Package Configuration

**File:** `nuget.config`

Centralized NuGet configuration for package sources and mapping, improving dependency management consistency.

**Key Features:**

- ✅ **Source Management** - Defines all package sources in one location
- ✅ **Package Mapping** - Maps packages to specific sources
- ✅ **Credential Handling** - Supports secure credential storage

**Benefits:**

- 🎯 Consistent package resolution across projects
- 🔒 Centralized configuration management
- 🚀 Simplified dependency updates

---

## 🔧 Enhancements

### GitHub Integration

- ✅ **GitHub Pull Request Extension** - Added to VS Code extension recommendations for better GitHub workflow integration
- ✅ **GitHub Permissions** - Added read permissions for commit statuses and checks to support new workflows
- ✅ **Copilot Instructions** - Updated prompts to emphasize GitHub integration and removed legacy Azure DevOps references

### Templates

- ✅ **Project Templates Documentation** - Comprehensive README added with usage instructions and guidelines
- ✅ **Templates Formatting** - Improved structure and formatting of project template files for better maintainability

### Documentation

- ✅ **Code Block Syntax** - Updated documentation code blocks to use proper PowerShell syntax highlighting
- ✅ **CODEOWNERS Management** - Added repository ownership documentation with CODEOWNERS guidelines
- ✅ **Pipeline Guidelines** - Added comprehensive documentation for managing Azure DevOps pipelines

### Azure DevOps Configuration

- ✅ **Pipeline Configuration Cleanup** - Removed obsolete pipeline configurations and cleaned up PR trigger paths
- ✅ **Dependabot Configuration** - Updated Dependabot security scanning configuration for improved effectiveness
- ✅ **Security Scanning Migration** - Transitioned security scanning from Azure DevOps to GitHub Advanced Security

---

## 🐛 Bug Fixes

### API Gateway

- 🐛 **x-forward-tenant-origin Header** - Fixed header value from "external" to "ext" for correct downstream routing

### Terraform Modules

- 🐛 **staticsite_service Module** - Updated module version to 3.0.0 for compatibility improvements

### Code Quality

- 🐛 **Nested Conditionals** - Fixed code where nested 'if' statements were combined for improved readability

---

## 📚 Documentation

### New Documentation

- 📖 **Project Templates README** - Comprehensive guide to available project templates with usage instructions (see `src/templates/`)
- 📖 **CODEOWNERS Guidelines** - Repository ownership and responsibility mapping (see `.github/CODEOWNERS`)
- 📖 **Azure DevOps Pipeline Management** - Guidelines for managing and configuring pipelines (see `.github/instructions/`)

### Updated Documentation

- 📝 **Copilot Instructions** - Updated for GitHub integration with current best practices
- 📝 **Code Examples** - PowerShell code blocks now use proper syntax highlighting
- 📝 **Project Templates Guide** - Updated template documentation with new structure and guidelines

---

## 🔄 Breaking Changes

**None in this release** ✅

---

## 📋 Additional Notes

- Total commits: **33**
- Files changed: **42**
- Contributors: **7** (Dependabot, Emmitt Johnson, and others)

---

### Support

- 📧 Teams Support Channel: [Support](https://teams.microsoft.com/l/channel/19%3Acb611810fb0b42b080cfff5590bdd51c%40thread.tacv2/Support?groupId=514d2dac-2d62-48ce-bf99-0fa0ce39469c&tenantId=a86cb8ed-369b-4df5-ace5-43811f6e08cf)

---
