Skip to content

"Overwriting existing environment variable" warning should be more helpful #295

@pjh

Description

@pjh

I'm modifying a github workflow that uses google-github-actions/auth. After making some changes to introduce new environment variables I started getting a new warning when my action runs. From the raw logs for my action I determined that this warning is coming from the auth action, presumably from here. The warning is:

"Overwriting existing environment variable GCP_PROJECT (was: "...")"

image

This warning message is incomplete and not actionable, and could be improved. Some thoughts:

  • What is the value that the variable is being overwritten with? I can see what it was but not what it will be.
  • Who is doing the overwriting? This is really an issue with the GitHub UI (I shouldn't have to dig into the raw logs to figure this out), but until GitHub improves that the message could perhaps say "google-github-actions/auth is overwriting existing..."
  • Most importantly, what should I do about it? Does it matter that the auth action is overwriting my environment variable? If it doesn't matter or there's nothing I should do about it, then it would be great to make this a debug statement instead of a warning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions