[PR #2063] [MERGED] feat: support config env expansion #2250

Closed
opened 2026-03-01 21:54:38 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/nektos/act/pull/2063
Author: @raffis
Created: 10/24/2023
Status: Merged
Merged: 12/17/2023
Merged by: @mergify[bot]

Base: masterHead: feat-config-env-expand


📝 Commits (4)

  • 60fd9f1 feat: support config env expansion
  • da72511 Merge branch 'master' into feat-config-env-expand
  • 89beb69 Merge branch 'master' into feat-config-env-expand
  • 9a7d7fc Merge branch 'master' into feat-config-env-expand

📊 Changes

1 file changed (+2 additions, -1 deletions)

View changed files

📝 cmd/root.go (+2 -1)

📄 Description

Current situation

Using an .actrc config it is not possible to utilize envs as there is no env expansion since its not invoked from a shell.

I'd like to have a config like this which is currently not working:

--detect-event
-s GITUB_TOKEN=$GITHUB_TOKEN
-s GH_ACTIONS=$GITHUB_TOKEN
--container-options --privileged --mount type=bind,source=/home/$USER/.docker-act,target=/home/runner/.docker

Proposal

Expand any envs while appending the caller args.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/nektos/act/pull/2063 **Author:** [@raffis](https://github.com/raffis) **Created:** 10/24/2023 **Status:** ✅ Merged **Merged:** 12/17/2023 **Merged by:** [@mergify[bot]](https://github.com/apps/mergify) **Base:** `master` ← **Head:** `feat-config-env-expand` --- ### 📝 Commits (4) - [`60fd9f1`](https://github.com/nektos/act/commit/60fd9f19c352361cd2d08f65ca0ef8f934d4d571) feat: support config env expansion - [`da72511`](https://github.com/nektos/act/commit/da7251127e8224d42738e734f11268309b4d15ec) Merge branch 'master' into feat-config-env-expand - [`89beb69`](https://github.com/nektos/act/commit/89beb69a5f606b15b6cdd6e8a36686b9f7bd87d8) Merge branch 'master' into feat-config-env-expand - [`9a7d7fc`](https://github.com/nektos/act/commit/9a7d7fc3d1274780c03225a4c5a4c7b1d27ff4f1) Merge branch 'master' into feat-config-env-expand ### 📊 Changes **1 file changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `cmd/root.go` (+2 -1) </details> ### 📄 Description ## Current situation Using an .actrc config it is not possible to utilize envs as there is no env expansion since its not invoked from a shell. I'd like to have a config like this which is currently not working: ``` --detect-event -s GITUB_TOKEN=$GITHUB_TOKEN -s GH_ACTIONS=$GITHUB_TOKEN --container-options --privileged --mount type=bind,source=/home/$USER/.docker-act,target=/home/runner/.docker ``` ## Proposal Expand any envs while appending the caller args. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-01 21:54:38 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#2250
No description provided.