[PR #1429] [CLOSED] feat: add support for writing to GITHUB_OUTPUT #1945

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

📋 Pull Request Information

Original PR: https://github.com/nektos/act/pull/1429
Author: @veleek
Created: 11/7/2022
Status: Closed

Base: masterHead: feat/github-output


📝 Commits (2)

  • d3fd25f feat: add support for writing to GITHUB_OUTPUT
  • 71e41db Merge branch 'master' into feat/github-output

📊 Changes

5 files changed (+49 additions, -6 deletions)

View changed files

📝 pkg/runner/run_context.go (+5 -0)
📝 pkg/runner/runner_test.go (+1 -1)
📝 pkg/runner/step.go (+15 -0)
📝 pkg/runner/step_test.go (+1 -0)
📝 pkg/runner/testdata/environment-files/push.yaml (+27 -5)

📄 Description

As of the beginning of October, the ::set-output command is being deprecated in favor of using Environment Files to avoid exposing data by untrusted loggers.

Use of these commands will begin failing as of 31st May 2023.

This PR attempts to enable act to support the $GITHUB_OUTPUT environment file. I'm a new contributor, so I'm not 100% sure if this covers all of the expected edge cases, so please let me know if there's a better way to accomplish this (e.g. maybe by adding an additional exectutor wrapper or something).


🔄 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/1429 **Author:** [@veleek](https://github.com/veleek) **Created:** 11/7/2022 **Status:** ❌ Closed **Base:** `master` ← **Head:** `feat/github-output` --- ### 📝 Commits (2) - [`d3fd25f`](https://github.com/nektos/act/commit/d3fd25f0ce08aab87b9a4cc8ee5ab1a345aedfa6) feat: add support for writing to GITHUB_OUTPUT - [`71e41db`](https://github.com/nektos/act/commit/71e41db5c7ac2980c63a99b074ce7f4c0ee0b63c) Merge branch 'master' into feat/github-output ### 📊 Changes **5 files changed** (+49 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `pkg/runner/run_context.go` (+5 -0) 📝 `pkg/runner/runner_test.go` (+1 -1) 📝 `pkg/runner/step.go` (+15 -0) 📝 `pkg/runner/step_test.go` (+1 -0) 📝 `pkg/runner/testdata/environment-files/push.yaml` (+27 -5) </details> ### 📄 Description As of the beginning of October, [the `::set-output` command is being deprecated](https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/) in favor of using [Environment Files](https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#environment-files) to avoid exposing data by untrusted loggers. Use of these commands will begin failing as of 31st May 2023. This PR attempts to enable `act` to support the `$GITHUB_OUTPUT` environment file. I'm a new contributor, so I'm not 100% sure if this covers all of the expected edge cases, so please let me know if there's a better way to accomplish this (e.g. maybe by adding an additional exectutor wrapper or something). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-01 21:53:21 +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#1945
No description provided.