Conversation
There was a problem hiding this comment.
PR Overview
This PR enables the overwrite of environment variables from the local .env file during the Node.js process execution.
- Enables overwriting by adding the "override" option in the dotenv configuration.
- Wraps the node_modules check in braces and introduces a commented placeholder for restoring environment variables.
Reviewed Changes
| File | Description |
|---|---|
| src/commands/run.ts | Adds "override: true" to the dotenv config and updates error handling |
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (1)
src/commands/run.ts:64
- Ensure that the version of the dotenv library in use supports the 'override' option, otherwise this change might lead to unintended behavior.
override: true
Tip: Leave feedback on Copilot's review comments with the 👎 and 👍 buttons to help improve review quality. Learn more
1cc25dd to
680f26f
Compare
🦙 MegaLinter status: ❌ ERROR
See detailed report in MegaLinter reports |
There was a problem hiding this comment.
PR Overview
This PR enables environment variable overwriting by adding a configuration option when loading variables from the local .env file.
- Adds an
override: trueoption to the configuration call in the Node.js process. - Restricts the overwrite behavior to the local action runtime.
Reviewed Changes
| File | Description |
|---|---|
| src/commands/run.ts | Introduces the override: true configuration for env |
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (1)
src/commands/run.ts:64
- The property name 'override' in the config options is inconsistent with the PR title which refers to 'overwrite'. Consider renaming it to 'overwrite' for clarity and alignment with the PR intent.
override: true
Tip: Copilot only keeps its highest confidence comments to reduce noise and keep you focused. Learn more

This PR adds the
overwriteconfiguration option when loading environment variables from the user's local.envfile. This is restricted to the Node.js process@github/local-actionruns in, so there is no risk of overwriting environment variables in the user's shell.CC @githubdev58yashi
Closes #155