chore: remove workflow command set-env #1627

Merged
mfenniak merged 1 commit from aahlenst/runner:remove-set-env into main 2026-07-17 02:12:08 +00:00
Member

The workflow command set-env allows injecting additional variables into the environment. Unfortunately, it is difficult to use securely. Therefore, it is removed from Forgejo Runner. If workflows still use set-env, a warning will be printed. Contrary to GitHub Actions, it is not possible to restore it by setting the environment variable ACTIONS_ALLOW_UNSECURE_COMMANDS=true because better alternatives exist. Workflows that need to amend the environment can write to $FORGEJO_ENV.

Instead of:

- run: |
    echo "::set-env name=MY_VARIABLE::value"

Use:

- run: |
    echo "MY_VARIABLE=value" >> "$FORGEJO_ENV"

See #1455.

  • other
    • PR: chore: remove workflow command set-env
The workflow command `set-env` allows injecting additional variables into the environment. Unfortunately, it is difficult to use securely. Therefore, it is removed from Forgejo Runner. If workflows still use `set-env`, a warning will be printed. Contrary to GitHub Actions, it is not possible to restore it by setting the environment variable `ACTIONS_ALLOW_UNSECURE_COMMANDS=true` because better alternatives exist. Workflows that need to amend the environment can write to `$FORGEJO_ENV`. Instead of: ```yaml - run: | echo "::set-env name=MY_VARIABLE::value" ``` Use: ```yaml - run: | echo "MY_VARIABLE=value" >> "$FORGEJO_ENV" ``` See https://code.forgejo.org/forgejo/runner/issues/1455. <!--start release-notes-assistant--> <!--URL:https://code.forgejo.org/forgejo/runner--> - other - [PR](https://code.forgejo.org/forgejo/runner/pulls/1627): <!--number 1627 --><!--line 0 --><!--description Y2hvcmU6IHJlbW92ZSB3b3JrZmxvdyBjb21tYW5kIHNldC1lbnY=-->chore: remove workflow command set-env<!--description--> <!--end release-notes-assistant-->
aahlenst force-pushed remove-set-env from ebc50cee0c
Some checks failed
cascade / debug (pull_request_target) Has been skipped
cascade / forgejo (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / runner exec tests (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
test-multi-platform / arm64 (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 13s
checks / validate mocks (pull_request) Successful in 23s
checks / Build Forgejo Runner (pull_request) Successful in 25s
checks / validate pre-commit-hooks file (pull_request) Successful in 32s
checks / runner exec tests (pull_request) Successful in 39s
checks / Build unsupported platforms (pull_request) Successful in 56s
checks / Run integration tests with Docker (docker-latest) (pull_request) Failing after 14s
checks / Run integration tests with Docker (docker-stable) (pull_request) Failing after 2m44s
checks / Run integration tests with Podman (pull_request) Successful in 12m4s
to b67fb912ac
All checks were successful
cascade / debug (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / runner exec tests (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
checks / validate mocks (pull_request) Successful in 32s
checks / validate pre-commit-hooks file (pull_request) Successful in 47s
checks / Build Forgejo Runner (pull_request) Successful in 57s
checks / runner exec tests (pull_request) Successful in 52s
checks / Build unsupported platforms (pull_request) Successful in 1m12s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 12m39s
checks / Run integration tests with Podman (pull_request) Successful in 12m59s
checks / Run integration tests with Docker (docker-stable) (pull_request) Successful in 14m32s
issue-labels / release-notes (pull_request_target) Successful in 4s
test-multi-platform / arm64 (pull_request) Has been skipped
cascade / end-to-end (pull_request_target) Successful in 5s
cascade / forgejo (pull_request_target) Successful in 29s
2026-07-15 17:54:19 +00:00
Compare
Contributor

cascading-pr updated at actions/setup-forgejo#1043

cascading-pr updated at https://code.forgejo.org/actions/setup-forgejo/pulls/1043
mfenniak approved these changes 2026-07-17 02:12:03 +00:00
mfenniak left a comment

Great, thanks!

Great, thanks!
mfenniak referenced this pull request from a commit 2026-08-24 21:22:44 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No assignees
3 participants
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
forgejo/runner!1627
No description provided.