Skip to content

Conversation

Copy link
Contributor

Copilot AI commented May 27, 2025

Issue

The GitHub Actions workflow file .github/workflows/az-login.yml was failing with the following errors:

Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.AZURE_CREDENTIALS != ''
Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.AZURE_CREDENTIALS == '' && secrets.AZURE_CLIENT_ID != ''

Changes Made

Fixed the GitHub Actions workflow by properly formatting the conditional expressions in az-login.yml. When using secret values in workflow conditionals, they must be accessed within the expression syntax (${{ ... }}).

Changes:

  1. Line 34: Changed if: secrets.AZURE_CREDENTIALS != '' to if: ${{ secrets.AZURE_CREDENTIALS != '' }}
  2. Line 41: Changed if: secrets.AZURE_CREDENTIALS == '' && secrets.AZURE_CLIENT_ID != '' to if: ${{ secrets.AZURE_CREDENTIALS == '' && secrets.AZURE_CLIENT_ID != '' }}

These changes maintain the same workflow logic but fix the syntax errors preventing the workflow from running successfully.

Fixes #25.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: Alanwe <20447664+Alanwe@users.noreply.github.com>
Copilot AI changed the title [WIP] fix github actions workflow Fix GitHub Actions workflow conditional expressions May 27, 2025
Copilot AI requested a review from Alanwe May 27, 2025 17:17
Copilot finished work on behalf of Alanwe May 27, 2025 17:17
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.

fix github actions workflow

2 participants