Skip to content

feat: add JSON structured log target #3

feat: add JSON structured log target

feat: add JSON structured log target #3

Triggered via pull request March 16, 2026 01:50
@devfeeldevfeel
synchronize #4
aicode-json-log
Status Failure
Total duration 42s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 2 warnings
Lint: targets/target_file.go#L111
Error return value of `file.WriteString` is not checked (errcheck)
Lint: internal/innerlogger.go#L101
Error return value of `file.WriteString` is not checked (errcheck)
Lint: util/convert/convert.go#L46
Error return value of `binary.Read` is not checked (errcheck)
Lint: util/email/email.go#L64
S1025: the argument is already a string, there's no need to use fmt.Sprintf (gosimple)
Lint: util/email/email.go#L62
S1025: the argument is already a string, there's no need to use fmt.Sprintf (gosimple)
Lint: layout/layout.go#L89
ineffectual assignment to buf (ineffassign)
Lint: layout/layout.go#L83
stringintconv: conversion from int to string yields a string of one rune, not a string of digits (govet)
Lint: layout/layout.go#L56
stringintconv: conversion from int to string yields a string of one rune, not a string of digits (govet)
Lint: layout/layout.go#L13
field `val` is unused (unused)
Lint: layout/layout.go#L12
field `isEnd` is unused (unused)
Test
Process completed with exit code 2.
Lint
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/setup-go@v5, golangci/golangci-lint-action@v6. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Test
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/setup-go@v5. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/