Christopher Homberger
4fed07ffc4
Force linux/amd64 for tests running on amd64 renble tests
2026-02-27 11:03:35 +01:00
Christopher Homberger
c192d65d18
exclude act pkg from vet
2026-02-23 23:33:02 +01:00
Christopher Homberger
b53c54f73d
fix last error
2026-02-23 14:09:30 +01:00
Christopher Homberger
09d18916bf
more lint errors
2026-02-23 00:30:44 +01:00
Christopher Homberger
bffc600775
fixes
2026-02-22 21:12:25 +01:00
Christopher Homberger
a27473e6a8
fixes
2026-02-22 21:04:33 +01:00
Christopher Homberger
a77f10683d
assert => require
2026-02-22 21:00:42 +01:00
Christopher Homberger
d187ac2fc1
auto adjust code
2026-02-22 20:58:46 +01:00
Christopher Homberger
949a40c7a5
Merge https://gitea.com/actions-oss/act-cli into act-runner-merged
2026-02-22 20:56:21 +01:00
Christopher Homberger
3413919161
update import path
2026-02-22 20:54:58 +01:00
Christopher Homberger
9fd95d203f
Merge https://github.com/actions-oss/act-cli into act-runner-merged
2026-02-22 20:38:07 +01:00
Christopher Homberger
52eb6e43cd
Merge branch 'main' of gitea.com:gitea/act_runner into act-runner-actions-oss-act
2026-02-22 20:26:32 +01:00
Christopher Homberger
b48c9c29e9
Merge branch 'act-runner-actions-oss-act' of gitea.com:gitea/act_runner into act-runner-actions-oss-act
2026-02-22 17:34:49 +01:00
Christopher Homberger
cfbb124754
Move logging to another file
2026-02-22 17:34:18 +01:00
Christopher Homberger
340e1de2e3
fix GitHubAPIServerURL
2026-02-22 17:28:48 +01:00
Christopher Homberger
3f008b3310
forget needs
2026-02-22 16:05:39 +01:00
Christopher Homberger
9f7b881426
fix lint
2026-02-22 15:51:52 +01:00
Christopher Homberger
0ab72505cc
Merge branch 'main' of gitea.com:gitea/act_runner into act-runner-actions-oss-act
2026-02-22 15:45:00 +01:00
Christopher Homberger
d4c46e538e
add strategy
2026-02-20 21:44:30 +01:00
Christopher Homberger
ae82ca2e97
adapt
2026-02-20 21:37:36 +01:00
Christopher Homberger
d9948c0df4
fix add more ctx
2026-02-20 21:10:28 +01:00
Christopher Homberger
995551f1aa
experiment
2026-02-20 21:10:28 +01:00
Christopher Homberger
579b7af04f
wip
...
update go mod
2026-02-20 21:10:16 +01:00
Christopher Homberger and ChristopherHX
40ee0f3ef6
feat: add act runner compat code ( #35 )
...
* attempt to build an act_runner using this implementation of act with minimal changes on act side.
Reviewed-on: https://gitea.com/actions-oss/act-cli/pulls/35
Co-authored-by: Christopher Homberger <[email protected] >
Co-committed-by: Christopher Homberger <[email protected] >
2026-02-20 20:06:04 +00:00
Christopher Homberger
17bc93f003
migrate to WithJobLoggerFactory
2026-02-20 14:17:04 +01:00
Christopher Homberger
35df5a61e4
WIP evaluate upgrade
2026-02-20 14:10:55 +01:00
Christopher Homberger and ChristopherHX
933c4a5bd5
feat: allow configuring gitea schema mode ( #23 )
...
* config entries for schema change
* remove broken/unused syntetic nodejs action
* specify desired schema in model struct that is read by unmarshal
* replace params by config
* allows gitea context + env names
* act --gitea now parses a subset of gitea specific workflows
Reviewed-on: https://gitea.com/actions-oss/act-cli/pulls/23
Co-authored-by: Christopher Homberger <[email protected] >
Co-committed-by: Christopher Homberger <[email protected] >
2026-02-14 16:23:59 +00:00
Christopher Homberger and ChristopherHX
faa252c8e9
fix: add branding ( #33 )
...
Closes https://gitea.com/actions-oss/act-cli/issues/31
Reviewed-on: https://gitea.com/actions-oss/act-cli/pulls/33
Co-authored-by: Christopher Homberger <[email protected] >
Co-committed-by: Christopher Homberger <[email protected] >
2026-02-14 16:16:53 +00:00
Christopher Homberger and ChristopherHX
8505f73fe4
fix: fallback of localRepository cache being nil ( #29 )
...
Doing `act --local-repository test/self-ref@main=/folder-path/self-ref` caused a null pointer exception while fetching a non mapped entry, due to missing remote fallback.
Reviewed-on: https://gitea.com/actions-oss/act-cli/pulls/29
Co-authored-by: Christopher Homberger <[email protected] >
Co-committed-by: Christopher Homberger <[email protected] >
2026-02-06 11:11:34 +00:00
Christopher Homberger and ChristopherHX
6c827eba95
fix: anchor cyclic detection ( #30 )
...
Closes #25
Reviewed-on: https://gitea.com/actions-oss/act-cli/pulls/30
Co-authored-by: Christopher Homberger <[email protected] >
Co-committed-by: Christopher Homberger <[email protected] >
2026-02-02 20:43:49 +00:00
ChristopherHX and ChristopherHX
13e0654fd7
fix: gitea release workflow ( #22 )
...
Creating release v0.4.0 failed
Reviewed-on: https://gitea.com/actions-oss/act-cli/pulls/22
Co-authored-by: ChristopherHX <[email protected] >
Co-committed-by: ChristopherHX <[email protected] >
2026-01-31 23:24:09 +00:00
Christopher Homberger and Lunny Xiao
c4b57fbcb2
chore(deps): upgrade dependencies ( #775 )
...
CI uses latest go 24, we may need a cron job after go updates.
Closes https://gitea.com/gitea/act_runner/issues/774
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/775
Reviewed-by: Lunny Xiao <[email protected] >
Co-authored-by: Christopher Homberger <[email protected] >
Co-committed-by: Christopher Homberger <[email protected] >
2025-12-20 23:35:15 +00:00
Christopher Homberger and ChristopherHX
0cdc6fd88b
test: missing shell property in composite action ( #20 )
...
Make sure we report schema errors consistently
Reviewed-on: https://gitea.com/actions-oss/act-cli/pulls/20
Co-authored-by: Christopher Homberger <[email protected] >
Co-committed-by: Christopher Homberger <[email protected] >
2025-12-19 16:25:23 +00:00
ChristopherHX and ChristopherHX
ce0890578a
refactor: move getContainerActionPaths into step interface ( #13 )
...
* allows to specialize local vs remote action implementation
* allow paths like ./.. for local action
Closes https://gitea.com/actions-oss/act-cli/issues/12
Reviewed-on: https://gitea.com/actions-oss/act-cli/pulls/13
Co-authored-by: ChristopherHX <[email protected] >
Co-committed-by: ChristopherHX <[email protected] >
2025-12-19 16:24:48 +00:00
ChristopherHX and ChristopherHX
ee2e0135d5
feat: implement case function ( #16 )
...
Follow GitHub Actions
* added unit tests
Closes #15
Reviewed-on: https://gitea.com/actions-oss/act-cli/pulls/16
Co-authored-by: ChristopherHX <[email protected] >
Co-committed-by: ChristopherHX <[email protected] >
2025-12-18 19:27:30 +00:00
Christopher Homberger and ChristopherHX
83cbf1f2b8
Port CI to Gitea.com ( #1 )
...
# Problems
- [x] Some env variables from act itself / act_runner let the tests fail.
- [ ] CI takes too long to clone actions, need to speed up the used act_runner by sparse checkout
- Runners are reused this speeds up once every runner has ran every job
- [ ] Qemu setup is broken and do not add all platforms like GitHub CI expected` linux/amd64,linux/amd64/v2,linux/amd64/v3,linux/amd64/v4,linux/arm64,linux/riscv64,linux/ppc64le,linux/s390x,linux/386,linux/mips64le,linux/mips64,linux/loong64,linux/arm/v7,linux/arm/v6` got `linux/amd64,linux/amd64/v2,linux/amd64/v3,linux/amd64/v4,linux/386` without qemu set up
- Test Disabled
- [x] ACTIONS_RUNTIME_TOKEN needs to be unset
- [ ] Snapshot needs our version of the npm package / patching
- Test Disabled
- [ ] ACTIONS_RESULTS_URL:http://127.0.0.1:12345/ seems to be a fallback to localhost this is a problem
- Test Disabled
Reviewed-on: https://gitea.com/actions-oss/act-cli/pulls/1
Co-authored-by: Christopher Homberger <[email protected] >
Co-committed-by: Christopher Homberger <[email protected] >
2025-11-27 14:57:23 +00:00
ChristopherHX and GitHub
2c1a559406
Bump version from 0.3.5 to 0.4.0 ( #143 )
2025-11-27 14:19:30 +01:00
ChristopherHX and Jason Song
50e0509007
Do not implicitly mount /var/run/docker.sock ( #751 )
...
* podman creates an folder
* dind sees a folder and fails
Was adding the mount a mistake?, a feature with side effects?
Closes https://gitea.com/gitea/act_runner/issues/750
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/751
Reviewed-by: Jason Song <[email protected] >
Co-authored-by: ChristopherHX <[email protected] >
Co-committed-by: ChristopherHX <[email protected] >
2025-10-09 07:16:56 +00:00
ChristopherHX and GitHub
114e57f94e
chore(docs): Mention YAML Anchor support ( #130 )
2025-10-06 13:53:29 +02:00
ChristopherHX and GitHub
82dccc7820
Replace expressions engine ( #133 )
2025-10-06 13:53:15 +02:00
ChristopherHX and GitHub
9c2f3e9f70
Fix self referencing anchors should cause error ( #132 )
2025-09-27 00:04:03 +02:00
ChristopherHX and GitHub
67f0e3d852
Update Version ( #129 )
2025-09-13 13:55:02 +00:00
ChristopherHX and GitHub
79360e4ed1
fix: explode yaml anchors ( #126 )
...
* do not require code changes at several places
2025-09-13 15:46:46 +02:00
Christopher Homberger and Lunny Xiao
8920c4a170
Timeout to wait for and optionally require docker always ( #741 )
...
* do not require docker cli in the runner image for waiting for a sidecar dockerd
* allow to specify that `:host` labels would also only be accepted if docker is reachable
Co-authored-by: Lunny Xiao <[email protected] >
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/741
Reviewed-by: Lunny Xiao <[email protected] >
Co-authored-by: Christopher Homberger <[email protected] >
Co-committed-by: Christopher Homberger <[email protected] >
2025-08-28 17:28:08 +00:00
Christopher Homberger and Lunny Xiao
6a7e18b124
Allow node24 actions ( #737 )
...
* `node` Tool is used regardless of this change
* upgrade images with `node` = `node24` if required
* actions/checkout@v5 now passing validation
Fixes #729
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/737
Reviewed-by: Lunny Xiao <[email protected] >
Co-authored-by: Christopher Homberger <[email protected] >
Co-committed-by: Christopher Homberger <[email protected] >
2025-08-21 17:47:26 +00:00
ChristopherHX and GitHub
2478a22d8c
Update VERSION ( #124 )
2025-08-04 17:08:08 +02:00
ChristopherHX and GitHub
cd57d482c3
support yaml anchors ( #65 )
2025-08-04 16:57:51 +02:00
ChristopherHX and GitHub
42ec8a5ab5
fix: Allow almost all node<number> variants in actions.runs ( #120 )
2025-07-24 23:33:11 +02:00
ChristopherHX and GitHub
aeb7c01c61
Bump Test image to bookworm ( #121 )
...
* buster is end of life since 2024
2025-07-24 23:25:36 +02:00
ChristopherHX and GitHub
4c7216f69b
fix: matrix expansion logic ( #115 )
...
* add another test
* remove //nolint:gocyclo
2025-06-08 13:23:33 +02:00
ChristopherHX and GitHub
3293d725a7
feat: add parallel flag ( #114 )
...
* add parallel flag
2025-06-08 12:41:42 +02:00
ChristopherHX and GitHub
f36df5592d
feat: CustomExecutor Provide Custom Job Runner Implementation ( #113 )
2025-06-08 11:41:38 +02:00
ChristopherHX and GitHub
d5a1a09aa4
fix: GITHUB_ENV and GITHUB_OUTPUT allow larger lines ( #112 )
...
* Specify larger buffer
2025-06-03 22:59:05 +02:00
ChristopherHX and GitHub
e6ba3086c3
chore(deps): Migrate docker api usage ( #110 )
...
* do not use deprecated types / functions
2025-06-01 13:53:07 +00:00
ChristopherHX and GitHub
61237a1bdd
Update README.md ( #108 )
2025-05-31 10:31:24 +02:00
ChristopherHX and GitHub
5ca0d3cb71
chore(deps): Update Workflow Schema ( #107 )
...
* add ai permission
* add workflow description
2025-05-21 10:02:35 +00:00
ChristopherHX and GitHub
b634fba677
feat: contextdata overlay api and more gh/gt instance flags ( #105 )
...
* add TestGetGitHubContextOverlay
2025-05-18 13:44:33 +02:00
ChristopherHX and GitHub
6440a419d2
fix: stability of docker cancel test ( #106 )
2025-05-18 13:24:33 +02:00
ChristopherHX and GitHub
1dc7a4d269
feat: allow ctx overlay + case sensitive env ctx ( #99 )
...
* switch to fork of actionlint
2025-05-18 11:35:05 +02:00
ChristopherHX and GitHub
bb140f1a38
feat: log parsed command data in json logger ( #103 )
...
* feat: log parsed command data in json logger
* add logging info to other commands as well
2025-05-17 16:14:53 +02:00
Christopher Homberger and techknowlogick
a616ed1a10
feat: register interactive with values from cli ( #682 )
...
I used to be able to do something like `./act_runner register --instance https://gitea.com --token testdcff --name test` on GitHub Actions Runners, but act_runner always asked me to enter instance, token etc. again and requiring me to use `--no-interactive` including passing everything per cli.
My idea was to extract the preset input of some stages to skip the prompt for this value if it is a non empty string. Labels is the only question that has been asked more than once if validation failed, in this case the error path have to unset the values of the input structure to not end in a non-interactive loop.
_I have written this initially for my own gitea runner, might be useful to everyone using the official runner as well_
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/682
Reviewed-by: Lunny Xiao <[email protected] >
Co-authored-by: Christopher Homberger <[email protected] >
Co-committed-by: Christopher Homberger <[email protected] >
2025-05-08 01:57:53 +00:00
Christopher Homberger and techknowlogick
f0b5aff3bb
fix: invalid label NoInteractive exit code ( #683 )
...
* add test
* return validation error not nil from function
Closes #665
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/683
Reviewed-by: techknowlogick <[email protected] >
Co-authored-by: Christopher Homberger <[email protected] >
Co-committed-by: Christopher Homberger <[email protected] >
2025-05-07 17:17:26 +00:00
Christopher Homberger and techknowlogick
44b4736703
feat: docker env vars for ephemeral and once ( #685 )
...
* GITEA_RUNNER_EPHEMERAL=1
* GITEA_RUNNER_ONCE=1
Related https://gitea.com/gitea/act_runner/issues/684
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/685
Reviewed-by: techknowlogick <[email protected] >
Co-authored-by: Christopher Homberger <[email protected] >
Co-committed-by: Christopher Homberger <[email protected] >
2025-05-07 15:43:05 +00:00
ChristopherHX and GitHub
268a69b6d1
fix: use moby/go-archive due to deprecation ( #102 )
2025-05-03 11:12:48 +02:00
ChristopherHX and GitHub
bb13ab4f84
feat: cache module add CreateHandler api ( #98 )
2025-04-26 16:58:30 +02:00
ChristopherHX and GitHub
258de0fa37
fix: container cleanup error is not a job execution error ( #97 )
2025-04-26 16:41:04 +02:00
ChristopherHX and GitHub
8536279ece
feat: service container in host mode ( #95 )
2025-04-26 14:28:53 +00:00
ChristopherHX and GitHub
a3c8116dee
fix: step container workdir and mounts ( #93 )
...
* fix: step container workdir and mounts
* avoid perm issues and do not mount tool_cache
2025-04-26 14:14:52 +02:00
ChristopherHX and GitHub
eddc77f3e0
refactor: migrate container changes ( #91 )
...
* refactor: migrate container changes
* ignore contextcheck
2025-04-26 13:28:18 +02:00
ChristopherHX and GitHub
dfbb094199
feat: custom host env dir for api ( #92 )
2025-04-26 12:55:45 +02:00
ChristopherHX and GitHub
0aca9b8144
fix: post step failure is job failure ( #85 )
2025-04-25 22:32:55 +00:00
ChristopherHX and GitHub
f2550c1971
fix: file name ( #90 )
2025-04-25 22:47:02 +02:00
ChristopherHX and GitHub
fba76f10dd
core(deps): bump golang-cilint to v2.0.2 ( #83 )
2025-04-25 21:58:30 +02:00
ChristopherHX and GitHub
4be22e9b76
fix: use the happy path for workflow_call ( #88 )
...
* not really supported mode
2025-04-25 19:56:07 +02:00
ChristopherHX and GitHub
b3cd631d23
chore(ci): require ENABLE_PROMOTE for promote cron ( #84 )
2025-04-02 13:01:13 +02:00
ChristopherHX and GitHub
f6db2a26cc
bumo VERSION ( #77 )
2025-03-29 13:52:48 +01:00
ChristopherHX and GitHub
a1935498a7
fix: tart backend stops VM to early ( #76 )
2025-03-29 13:39:47 +01:00
ChristopherHX and GitHub
fcf370fcd1
Update VERSION ( #73 )
2025-03-29 12:28:13 +01:00
ChristopherHX and GitHub
8ffb782f4d
chore: remove notices service ( #72 )
2025-03-29 12:27:52 +01:00
ChristopherHX and GitHub
cef5575fa4
feat: Support graceful job step cancellation ( #69 )
...
* for gh-act-runner
* act-cli support as well
* respecting always() and cancelled() of steps
* setup-job, bug report, gh cli and watch wait call is cancelled early
2025-03-29 12:27:36 +01:00
ChristopherHX and GitHub
95ba59f608
feat: --validate and --strict ( #71 )
...
* feat: `--validate` and `--strict`
* add test for strict validate
2025-03-28 22:56:20 +01:00
ChristopherHX and GitHub
b46fe4265e
fix: reporting fetch failure as job error and log the error ( #70 )
...
E.g. if GoGitAction Cache had a fetch failure this error did not trigger report jobResult Failure.
Also the error has been not printed until the last message before exit of act.
* adds tests for both corner cases
2025-03-28 00:17:07 +01:00
ChristopherHX and GitHub
d9a6d40f7c
catch panic in finally ( #68 )
2025-03-24 23:22:43 +01:00
ChristopherHX and GitHub
78089b3e42
Bump go to 1.24 ( #66 )
...
* Bump go to 1.24
* bump golangci-lint-action
2025-03-23 11:39:24 +01:00
Christopher Homberger and Lunny Xiao
b1ae30dda8
ephemeral act runner ( #649 )
...
Works for both interactive and non-interactive registration mode.
A further enhancement would be jitconfig support of the daemon command, because after some changes in Gitea Actions the registration token became reusable.
removing runner and fail seems not possible at the current api level
Part of https://github.com/go-gitea/gitea/pull/33570
Co-authored-by: Lunny Xiao <[email protected] >
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/649
Reviewed-by: Zettat123 <[email protected] >
Reviewed-by: Lunny Xiao <[email protected] >
Co-authored-by: Christopher Homberger <[email protected] >
Co-committed-by: Christopher Homberger <[email protected] >
2025-03-13 21:57:44 +00:00
ChristopherHX and GitHub
502d1687c2
feat: Support query parameter of tart in -P ( #62 )
...
* previously such an platform entry has been ignored
2025-02-22 15:17:49 +01:00
ChristopherHX and GitHub
903b0730d7
Platform tart:// improve logging / fix tool_cache ( #61 )
2025-02-22 15:17:32 +01:00
ChristopherHX and GitHub
00231e5dc1
feat: GoGitActionCache shallow fetch ( #63 )
2025-02-22 15:17:17 +01:00
ChristopherHX and GitHub
d0964718a1
chore: Group DependableBot Updates monthly ( #55 )
2025-02-21 16:06:07 +01:00
ChristopherHX and GitHub
0902938c00
add test workflows to cmd pkg ( #53 )
...
* add test workflows to cmd pkg
* list-options as well
* add more tests
* test entrypoint as well
* update exit code 1 test
2025-02-12 23:37:58 +01:00
ChristopherHX and GitHub
46ca8e7f30
fix: secret file reading ( #45 )
...
* fix: secret file reading
* do ToUpper for keys not only for cli args
* add tests
2025-02-12 22:03:01 +01:00
ChristopherHX and GitHub
27511e3003
Parse env file discard utf8 bom ( #38 )
...
* powershell 5 may add the BOM even when explicitly using utf8
* add test + apply to GITHUB_PATH as well
2025-02-12 21:26:55 +01:00
ChristopherHX and GitHub
d930a546ec
Use gh auth token for default GITHUB_TOKEN secret ( #43 )
...
* initial version
2025-02-01 11:07:17 +01:00
358722a69f
Added support for dereferenced map properties ( #44 )
...
* Added support for dereferenced properties
* Added negative test
Co-authored-by: m1r4c <[email protected] >
2025-01-31 21:39:20 +00:00
ChristopherHX and GitHub
a162920fb4
Update Readme and issue templates ( #40 )
2025-01-31 17:54:54 +01:00
ChristopherHX and GitHub
513497943c
Update .gitleaksignore ( #25 )
...
* megalinter update makes REDACTED fail gitleaks
2025-01-29 18:57:08 +01:00
ChristopherHX and GitHub
677e073448
feat: tart macOS vm's as job container ( #33 )
...
adds the tart:// protocol to platform mapping
e.g. `-P macos-14=tart://ghcr.io/cirruslabs/macos-sonoma-base:latest` if you have a mac.
`add-path` is probably broken
2025-01-29 17:27:04 +01:00
ChristopherHX and GitHub
592dc4bf2c
[BREAKING] new pull-if-needed no-rebuild ( #32 )
...
* Old inverted names removed
2025-01-29 17:25:39 +01:00
ChristopherHX and GitHub
6d45508104
fix: disable workflow recurse again ( #31 )
...
* This is a non existing feature for GitHub Actions
2025-01-29 17:23:57 +01:00
ChristopherHX and GitHub
3bd3400253
Use act as bin name ( #22 )
2025-01-29 17:22:24 +01:00