Skip to content

Fix copilot-setup-steps.yml: move env vars to GITHUB_ENV#71

Merged
mlidbom merged 2 commits intodevelopfrom
copilot/verify-copilot-setup-steps
Feb 12, 2026
Merged

Fix copilot-setup-steps.yml: move env vars to GITHUB_ENV#71
mlidbom merged 2 commits intodevelopfrom
copilot/verify-copilot-setup-steps

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 12, 2026

Per GitHub docs, the copilot-setup-steps job only honors steps, permissions, runs-on, services, snapshot, and timeout-minutes. The job-level env: block is silently ignored, so COMPOSABLE_MACHINE_SLOWNESS was never being set in the agent environment — risking performance test failures.

  • Moved COMPOSABLE_MACHINE_SLOWNESS, DOTNET_CLI_TELEMETRY_OPTOUT, and DOTNET_NOLOGO from job-level env: into a step writing to $GITHUB_ENV
- name: Set environment variables
  run: |
    echo "COMPOSABLE_MACHINE_SLOWNESS=5.0" >> "$GITHUB_ENV"
    echo "DOTNET_CLI_TELEMETRY_OPTOUT=1" >> "$GITHUB_ENV"
    echo "DOTNET_NOLOGO=true" >> "$GITHUB_ENV"

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

… to GITHUB_ENV step

Co-authored-by: mlidbom <143203+mlidbom@users.noreply.github.com>
Copilot AI changed the title [WIP] Verify optimal setup of Copilot workflow Fix copilot-setup-steps.yml: move env vars to GITHUB_ENV Feb 12, 2026
Copilot AI requested a review from mlidbom February 12, 2026 09:21
@mlidbom mlidbom marked this pull request as ready for review February 12, 2026 09:22
Copilot AI review requested due to automatic review settings February 12, 2026 09:22
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Copilot coding agent setup workflow so the agent reliably receives required environment variables (notably COMPOSABLE_MACHINE_SLOWNESS) by writing them to $GITHUB_ENV, aligning with GitHub Copilot agent workflow constraints.

Changes:

  • Removed the job-level env: block from the copilot-setup-steps job.
  • Added a dedicated step that exports COMPOSABLE_MACHINE_SLOWNESS, DOTNET_CLI_TELEMETRY_OPTOUT, and DOTNET_NOLOGO via $GITHUB_ENV.

@mlidbom mlidbom merged commit 92fe711 into develop Feb 12, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants