From f1423853131b0b10ec28027c15f0fa938dc450b4 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Sun, 10 Aug 2025 21:10:03 +0000 Subject: [PATCH] Update code.forgejo.org/forgejo/runner Docker tag to v9 (#838) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Update | Change | |---|---|---| | [code.forgejo.org/forgejo/runner](https://forgejo.org) ([source](https://code.forgejo.org/forgejo/runner)) | major | `7.0.0` -> `9.0.3` | --- ### Release Notes
forgejo/runner (code.forgejo.org/forgejo/runner) ### [`v9.0.3`](https://code.forgejo.org/forgejo/runner/releases/tag/v9.0.3) [Compare Source](https://code.forgejo.org/forgejo/runner/compare/v9.0.2...v9.0.3) - [User guide](https://forgejo.org/docs/next/user/actions/overview/) - [Administrator guide](https://forgejo.org/docs/next/admin/actions/) - [Container images](https://code.forgejo.org/forgejo/-/packages/container/runner/versions) Release Notes *** - features - [PR](https://code.forgejo.org/forgejo/runner/pulls/804): feat: lxc-systemd defaults to using Forgejo runner 9.0.2 - [PR](https://code.forgejo.org/forgejo/runner/pulls/784): feat: --health-\* options are allowed in `job..services..options` - bug fixes - [PR](https://code.forgejo.org/forgejo/runner/pulls/810): fix: log the URL of the action when it fails schema validation - [PR](https://code.forgejo.org/forgejo/runner/pulls/798): fix: lingering services/volumes/networks after jobs if cleanup takes >1min - other - [PR](https://code.forgejo.org/forgejo/runner/pulls/806): chore: upgrade lxc-helpers - [PR](https://code.forgejo.org/forgejo/runner/pulls/627): chore: teach renovate about examples/lxc-systemd/forgejo-runner-service.sh - [PR](https://code.forgejo.org/forgejo/runner/pulls/807): Update module github.com/containerd/errdefs to v1 - [PR](https://code.forgejo.org/forgejo/runner/pulls/803): chore: explain that part of the source is Apache 2 - [PR](https://code.forgejo.org/forgejo/runner/pulls/790): chore(cleanup): dispatch workflows according to the role of the repository - [PR](https://code.forgejo.org/forgejo/runner/pulls/797): chore: unify forgejo image names location - [PR](https://code.forgejo.org/forgejo/runner/pulls/799): chore: replace docker hub with code.forgejo.org - [PR](https://code.forgejo.org/forgejo/runner/pulls/802): Update module github.com/golangci/golangci-lint/v2/cmd/golangci-lint to v2.3.1 - [PR](https://code.forgejo.org/forgejo/runner/pulls/801): Update module github.com/opencontainers/selinux to v1.12.0 - [PR](https://code.forgejo.org/forgejo/runner/pulls/800): Update module github.com/go-git/go-git/v5 to v5.16.2 - [PR](https://code.forgejo.org/forgejo/runner/pulls/796): Update module github.com/docker/cli to v28.3.3+incompatible - [PR](https://code.forgejo.org/forgejo/runner/pulls/795): Update dependency forgejo/release-notes-assistant to v1.4.0 - [PR](https://code.forgejo.org/forgejo/runner/pulls/794): Update module github.com/spf13/pflag to v1.0.7 - [PR](https://code.forgejo.org/forgejo/runner/pulls/793): Update module github.com/opencontainers/image-spec to v1.1.1 - [PR](https://code.forgejo.org/forgejo/runner/pulls/792): Update module go.etcd.io/bbolt to v1.4.2 - [PR](https://code.forgejo.org/forgejo/runner/pulls/791): Update module github.com/rhysd/actionlint to v1.7.7 - [PR](https://code.forgejo.org/forgejo/runner/pulls/787): Update module github.com/go-git/go-billy/v5 to v5.6.2 - [PR](https://code.forgejo.org/forgejo/runner/pulls/789): chore: the release link to RELEASE-NOTES.md is no longer needed (take 2) ### [`v9.0.2`](https://code.forgejo.org/forgejo/runner/releases/tag/v9.0.2) [Compare Source](https://code.forgejo.org/forgejo/runner/compare/v9.0.1...v9.0.2) - features - [PR](https://code.forgejo.org/forgejo/runner/pulls/783): feat: use cache-{from,to}: type=gha in the docker/build-push-action example - [PR](https://code.forgejo.org/forgejo/runner/pulls/781): feat: add an LXC based example of docker/build-push-action usage - bug fixes - [PR](https://code.forgejo.org/forgejo/runner/pulls/786): fix: vars context is allowed in default values of action inputs - other - [PR](https://code.forgejo.org/forgejo/runner/pulls/788): Update https://data.forgejo.org/forgejo/forgejo-build-publish action to v5.4.1 - [PR](https://code.forgejo.org/forgejo/runner/pulls/782): chore: the release link to RELEASE-NOTES.md is no longer needed - [PR](https://code.forgejo.org/forgejo/runner/pulls/780): chore(ci): autoremove when running a workflow in a test - [PR](https://code.forgejo.org/forgejo/runner/pulls/778): Update dependency forgejo/release-notes-assistant to v1.3.6 ### [`v9.0.1`](https://code.forgejo.org/forgejo/runner/releases/tag/v9.0.1) [Compare Source](https://code.forgejo.org/forgejo/runner/compare/v9.0.0...v9.0.1) - other - [PR](https://code.forgejo.org/forgejo/runner/pulls/777): chore: to allow the runner to be imported, v9 needs to be in the go module - [PR](https://code.forgejo.org/forgejo/runner/pulls/776): Update module github.com/docker/docker to v28.3.3+incompatible \[SECURITY] - [PR](https://code.forgejo.org/forgejo/runner/pulls/775): chore: release notes are now published together with the release ### [`v9.0.0`](https://code.forgejo.org/forgejo/runner/releases/tag/v9.0.0) [Compare Source](https://code.forgejo.org/forgejo/runner/compare/v8.0.1...v9.0.0) Workflows and actions go through a schema validation and the runner will not start a job if they do not pass. Some existing workflows or actions may have syntax errors that did not prevent them from running with versions 7.0.0 and below but they will no longer work with versions 8.0.0 and above. Existing workflows can be verified and fixed before upgrading by using the new `forgejo-runner validate` command. For instance, the following will try to validate workflows and/or actions found in the Git repository at `https://example.com/my/repo` (a local directory at the root of a Git repository can also be used): ```sh $ forgejo-runner validate --repository https://example.com/my/repo .forgejo/workflows/release.yml workflow schema validation OK .forgejo/workflows/test.yml workflow schema validation OK ``` If the error is not immediately obvious, please file an issue with a copy of the failed workflow and revert to using version 7.0.0 until it is resolved. *** - features including breaking changes - [PR](https://code.forgejo.org/forgejo/runner/pulls/740): feat!: remove support for using an artifact server via CLI - features - [PR](https://code.forgejo.org/forgejo/runner/pulls/757): feat: the new `forgejo-runner validate` command can be used to verify if an action or a workflow is conformant with the expected schema. `forgejo-runner validate --repository https://example.com/my/repository` will validate all the workflows and actions a Git repository contains. Alternatively `forgejo-runner validate --path myaction/action.yml --action` or `forgejo-runner validate --path .forgejo/workflows/test.yml --workflow` can be used to validate a single file. It is recommended to use these commands to verify existing actions and workflows pass before upgrading to [Forgejo runner v8.0.0](https://code.forgejo.org/forgejo/runner/src/branch/main/RELEASE-NOTES.md#8-0-0) or above to not disrupt existing workflows. - [PR](https://code.forgejo.org/forgejo/runner/pulls/768): feat(security): recommend security issues are reported to security@forgejo.org - [PR](https://code.forgejo.org/forgejo/runner/pulls/769): feat(tests): cmd executeCommand captures stderr & stdout - [PR](https://code.forgejo.org/forgejo/runner/pulls/753): feat: merge forgejo/act/pkg in the act directory - bug fixes - [PR](https://code.forgejo.org/forgejo/runner/pulls/770): fix: allow expressions in action descriptions and incomplete action inputs - [PR](https://code.forgejo.org/forgejo/runner/pulls/761): fix: the vars context is allowed in an action step env - [PR](https://code.forgejo.org/forgejo/runner/pulls/766): fix: allow expressions in step and job uses: - [PR](https://code.forgejo.org/forgejo/runner/pulls/762): fix(ci): use code.forgejo.org instead of the docker hub - other - [PR](https://code.forgejo.org/forgejo/runner/pulls/772): Restore `contrib/forgejo-runner.service` - [PR](https://code.forgejo.org/forgejo/runner/pulls/767): chore: remove unused/unmaintained files - [PR](https://code.forgejo.org/forgejo/runner/pulls/759): chore: a single testutils for both act and the runner - [PR](https://code.forgejo.org/forgejo/runner/pulls/758): chore: renovate must not look at any testdata subdirectory - [PR](https://code.forgejo.org/forgejo/runner/pulls/756): chore(release-notes): finalize 9.0.0 - [PR](https://code.forgejo.org/forgejo/runner/pulls/754): chore: use the act directory instead of https://code.forgejo.org/forgejo/act - [PR](https://code.forgejo.org/forgejo/runner/pulls/752): chore(docs): naked `host` schema in 8.0.0 is a breaking change - [PR](https://code.forgejo.org/forgejo/runner/pulls/750): chore: disable package name checks for revive \[skip cascade] ### [`v8.0.1`](https://code.forgejo.org/forgejo/runner/blob/HEAD/RELEASE-NOTES.md#801) [Compare Source](https://code.forgejo.org/forgejo/runner/compare/v8.0.0...v8.0.1) - [tolerate strings for fail-fast, max-parallel, timeout-minutes, cancel-timeout-minutes](https://code.forgejo.org/forgejo/act/pulls/203). ### [`v8.0.0`](https://code.forgejo.org/forgejo/runner/blob/HEAD/RELEASE-NOTES.md#800) [Compare Source](https://code.forgejo.org/forgejo/runner/compare/v7.0.0...v8.0.0) - Breaking change: workflows files go through a [schema validation](https://code.forgejo.org/forgejo/act/pulls/170) and will not run if they do not pass. Some existing workflows may have syntax errors that did not prevent them from running with versions 7.0.0 and below but they will no longer work with versions 8.0.0 and above. Existing workflows can be verified and fixed before upgrading by using `forgejo-runner exec --workflows path-to-the-workflow`. For instance in a workflow where `ruins-on` was typed by mistake instead of `runs-on`: ```sh $ forgejo-runner exec --event unknown --workflows ../forgejo/.forgejo/workflows/build-release.yml Error: workflow is not valid. 'build-release.yml': Line: 32 Column 5: Failed to match job-factory: Line: 32 Column 5: Unknown Property ruins-on Line: 32 Column 5: Failed to match workflow-job: Line: 32 Column 5: Unknown Property ruins-on Line: 35 Column 5: Unknown Property steps Forgejo Actions YAML Schema validation error ``` If the error is not immediately obvious, please file an issue with a copy of the failed workflow and revert to using version 7.0.0 until it is resolved. - Breaking change: the logic assigning labels was updated and refactored: - in the absence of a label or a label, [default to `docker://node:22-bookworm` instead of `docker://node:20-bullseye` or `host`](https://code.forgejo.org/forgejo/runner/issues/134). - if the `lxc` scheme is set with no argument, it defaults to `lxc://debian:bookworm` instead of `lxc://debian:bullseye`. - the `host` schema cannot have any argument, it can no longer be `host://-self-hosted` - Breaking change: [bash fallback to sh if it is not available](https://code.forgejo.org/forgejo/runner/issues/150). It will use `bash` instead of `sh` when a container image is explicitly specified in the step. If a workflow depens on that behavior, it will need to be modified to explictly set the shell to `sh`. - Breaking change: [sanitize network aliases to be valid DNS names](https://code.forgejo.org/forgejo/act/pulls/190). It is breaking for workflows with services that rely on host names (derived from the service name or the job name) that do not match `[^A-Z0-9-]+`. They will be sanitized and a message displayed in the logs showing the sanitized name. The service can either be renamed to match the constraint so it can be used as is. Or the sanitized name can be used. For instance of a PostgreSQL service runs as `data.base` it will be sanitized as `data_base`. - [secrets that contain multiple lines are masked from the output](https://code.forgejo.org/forgejo/runner/pulls/661). - [sum256 the container name so derivations do not overflow](https://code.forgejo.org/forgejo/act/pulls/191).
--- ### Configuration 📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC), Automerge - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/838 Reviewed-by: earl-warren Co-authored-by: Renovate Bot Co-committed-by: Renovate Bot --- examples/docker-compose/compose-forgejo-and-runner.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/docker-compose/compose-forgejo-and-runner.yml b/examples/docker-compose/compose-forgejo-and-runner.yml index ac51a52b..143f9a4f 100644 --- a/examples/docker-compose/compose-forgejo-and-runner.yml +++ b/examples/docker-compose/compose-forgejo-and-runner.yml @@ -51,7 +51,7 @@ services: - 8080:3000 runner-register: - image: code.forgejo.org/forgejo/runner:7.0.0 + image: code.forgejo.org/forgejo/runner:9.0.3 links: - docker-in-docker - forgejo @@ -77,7 +77,7 @@ services: ' runner-daemon: - image: code.forgejo.org/forgejo/runner:7.0.0 + image: code.forgejo.org/forgejo/runner:9.0.3 links: - docker-in-docker - forgejo