5 Commits

Author SHA1 Message Date
hakito
2794ce5cd9 Merge branch 'main' into main 2023-12-19 13:54:55 +00:00
Hakito
e2ce8a7827 Sanitize LogRow.Content
fixes #452
2023-12-19 14:53:51 +01:00
Lunny Xiao
63b5128ad5 Merge branch 'main' into main 2023-11-26 03:31:44 +00:00
hakito
3a872d76cf Merge branch 'main' into main 2023-11-17 23:00:39 +00:00
Hakito
ec1532bfc3 Document how to exec on host
Fixes #380
2023-11-17 23:59:53 +01:00
2 changed files with 2 additions and 2 deletions

View File

@@ -484,7 +484,7 @@ func loadExecCmd(ctx context.Context) *cobra.Command {
execCmd.PersistentFlags().BoolVarP(&execArg.noSkipCheckout, "no-skip-checkout", "", false, "Do not skip actions/checkout")
execCmd.PersistentFlags().BoolVarP(&execArg.debug, "debug", "d", false, "enable debug log")
execCmd.PersistentFlags().BoolVarP(&execArg.dryrun, "dryrun", "n", false, "dryrun mode")
execCmd.PersistentFlags().StringVarP(&execArg.image, "image", "i", "node:16-bullseye", "docker image to use")
execCmd.PersistentFlags().StringVarP(&execArg.image, "image", "i", "node:16-bullseye", "Docker image to use. Use \"-self-hosted\" to run directly on the host.")
execCmd.PersistentFlags().StringVarP(&execArg.network, "network", "", "", "Specify the network to which the container will connect")
execCmd.PersistentFlags().StringVarP(&execArg.githubInstance, "gitea-instance", "", "", "Gitea instance to use.")

View File

@@ -418,7 +418,7 @@ func (r *Reporter) parseLogRow(entry *log.Entry) *runnerv1.LogRow {
return &runnerv1.LogRow{
Time: timestamppb.New(entry.Time),
Content: content,
Content: strings.ToValidUTF8(content, "?"),
}
}