Skip to content

Plugin cannot detect multiline step outputs #79

@SilverNicktail

Description

@SilverNicktail

When a step creates a single line output by echoing the value to $GITHUB_OUTPUT, the plugin successfully detects it for auto-completion and validation in subsequent steps.

When a step creates a multiline output in the same way, the plugin does not detect it correctly, and will show the output as being invalid when used in subsequent steps.

Steps to Reproduce

Here is a code example using GitHub's standard syntax for placing multiline strings into outputs. The use case here is creating a JSON credential string before logging in to Azure CLI.

- name: Prep Azure Creds
  id: creds
  run: |
    CREDS=$(cat <<EOF
    {
      "clientId" : "$CLIENT_ID",
      "clientSecret" : "$SERVICE_PRINCIPAL",
      "subscriptionId" : "$SUBSCRIPTION_ID",
      "tenantId" : "$TENANT_ID"
    }
    EOF
    )
    
    # GitHub's syntax for putting multilines into the output
    {
      echo "CREDS<<EOF"
      echo "$CREDS"
      echo "EOF"
    } >> "$GITHUB_OUTPUT"
  env:
    CLIENT_ID: ${{ secrets.azureClientId }}
    SERVICE_PRINCIPAL: ${{ secrets.azureServicePrincipal }}
    SUBSCRIPTION_ID: ${{ secrets.azureSubscriptionId }}
    TENANT_ID: ${{ secrets.azureTenantId }}

- name: Az CLI login
  uses: azure/login@v2
  with:
    creds: ${{ steps.creds.outputs.CREDS }}

Operating System
GitHub Ubuntu Runner

Plugin Version
2025.0.0

IDE Name and Version
IntelliJ IDEA Ultimate 2025.1.3

Expected behavior
The output should show as valid in subsequent steps and be available via autocomplete.

Screenshots

Plugin showing valid output as invalid

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions