Go to file
Zettat123 63c1734bb5
Fix potential log panic (#82)
If a job uses a [reusable workflow](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-of-jobsjob_iduses), the job's steps sequence will be empty.

But in log reporter, we don't check the length of `r.state.Steps`, which may cause panic.

``` go
if v, ok := entry.Data["stepNumber"]; ok {
	if v, ok := v.(int); ok {
		step = r.state.Steps[v]
	}
}
```

Reviewed-on: https://gitea.com/gitea/act_runner/pulls/82
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Zettat123 <zettat123@gmail.com>
Co-committed-by: Zettat123 <zettat123@gmail.com>
2023-04-05 00:53:35 +02:00
.forgejo/workflows the test workflow is not meant to release 2023-04-04 14:39:53 +02:00
.gitea/workflows Support cache on ci (#47) 2023-03-16 16:56:03 +01:00
artifactcache Get outbound IP in multiple ways or disable cache server if failed to init (#74) 2023-04-05 00:53:35 +02:00
client Inject version when building and report version to Gitea via log and header (#43) 2023-03-16 16:53:44 +01:00
cmd Get outbound IP in multiple ways or disable cache server if failed to init (#74) 2023-04-05 00:53:35 +02:00
config define FORGEJO_RUNNER_FILE 2023-03-09 18:25:54 +01:00
core Inject version when building and report version to Gitea via log and header (#43) 2023-03-16 16:53:44 +01:00
engine feat: move main task logic to runtime package 2022-11-24 15:37:06 +08:00
poller s|gitea.com/gitea/act_runner|codeberg.org/forgejo/runner| 2023-02-22 17:19:43 +01:00
register s|gitea.com/gitea/act_runner|codeberg.org/forgejo/runner| 2023-02-22 17:19:43 +01:00
runtime Fix potential log panic (#82) 2023-04-05 00:53:35 +02:00
.dockerignore keep .git on build to extract version from tag 2023-04-03 16:57:27 +02:00
.gitignore publish release 2023-04-03 01:13:33 +02:00
.golangci.yml chore: add .golangci config 2022-11-24 15:36:28 +08:00
Dockerfile publish release 2023-04-03 01:13:33 +02:00
LICENSE Add license 2022-11-24 15:36:16 +08:00
Makefile build static binaries 2023-04-03 01:13:33 +02:00
README.md trigger the build 2023-03-01 00:32:50 +01:00
build.go Support cache (#25) 2023-02-28 23:48:37 +01:00
go.mod sync with act 1.3.0 2023-04-04 12:20:22 +02:00
go.sum sync with act 1.3.0 2023-04-04 12:20:22 +02:00
main.go s|gitea.com/gitea/act_runner|codeberg.org/forgejo/runner| 2023-02-22 17:19:43 +01:00

README.md

Forgejo Actions runner

Runs workflows found in .forgejo/workflows, using a format similar to GitHub actions but with a Free Software implementation.

It is compatible with Forgejo v1.19.0-0-rc0