diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml index c006e5e01b..c28325f8af 100644 --- a/.github/workflows/copilot-setup-steps.yml +++ b/.github/workflows/copilot-setup-steps.yml @@ -24,6 +24,11 @@ jobs: contents: read steps: + - name: Set Environment Variables + shell: bash + run: | + echo "MODULE_NAME=SqlServerDsc" >> "$GITHUB_ENV" + - name: Checkout Repository uses: actions/checkout@v5 with: diff --git a/CHANGELOG.md b/CHANGELOG.md index c6da5982f4..79e394f73e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Attempt to unshallow the Copilot branch - Improved AI instructions. - Enhanced workflow with proper environment variable configuration and DSCv3 verification. + - Fixed environment variable persistence by using $GITHUB_ENV instead of + job-level env declaration. - `Assert-SqlDscLogin` - Added new public command to validate that a specified SQL Server principal exists as a login, throwing a terminating error if it doesn't exist.