alingse/Go linter Runner

Run linter on github repo and comment issue

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Maintainedlast commit Apr 2, 2025
License
None

Pinned Snippet

workflow.ymlSHA-pinned
uses: alingse/go-linter-runner@f714ac733facb20dfe3af0bf4e2e7580896b569d # v1.1.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
go_versionGo Version Default '1.22' 1.22
action'run' or 'submit' Default 'run' run
yaml_config'run' option: the yaml style config file for 'run' action ""
repo_urlThe repo to run lint, only work for github repo now
workdir'run' option: Work directory. Default '.' .
install_command'run' option: The install command like 'go install xxx/xxx@yyy'
linter_command'run' option: The lint command to run linter like 'xxlint --yy cc'
excludes'run' option: The output must exclude string array, can set as regex []
includes'run' option: The output must include string array, can set as regex [ ".go" ]
issue_id'run' option: If linter catch some output, it will post comment on the issue ""
enable_testfile'run' option: If enable_testfile is true, it will report the case in _test.go false
submit_source_file'submit' option: the repo url file for 'submit' action can be the file name in https://github.com/alingse/go-linter-runner/blob/main/source/ dir or other file download link. Default 'top.txt' top.txt
submit_repo_count'submit' option: the repo url count to submit that read from `submit_source_file` for 'submit' action Default '1000' 1000
submit_workflow'submit' option: the workflow to run Default 'go-linter-runner.yml' go-linter-runner.yml
submit_workflow_ref'submit' option: the workflow ref barnch to run Default '' ""
submit_rate'submit' option: the rate limit for submit action (requests per second) Default '0.25' 0.25

no outputs