ci: lint scripts, Dockerfile and workflows with make lint #42
No reviewers
Labels
No labels
bug
enhancement
needs-info
needs-triage
ready-for-agent
ready-for-human
spec
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
vicoli-oss/docker-forgejo-mcp!42
Loading…
Reference in a new issue
No description provided.
Delete branch "piscis/make-lint"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
CI built and smoke-tested the Image, but it never linted anything. This PR adds
make lintand runs it as the first CI step after the tools are installed.scripts/*.sh, hadolint on theDockerfile, actionlint on.forgejo/workflows/*.yml(which also shellchecks therun:blocks). Each linter runs in a container image pinned by digest.ci.ymlcleanup step: the unquoteddocker image rm $images(SC2086) is nowxargs.Dockerfile: DL3018 (unpinnedapk add git) is ignored, with the reason as a comment. The base image is pinned by digest.dockerrunner label is accepted.make lintand the lint step in CI.Checked locally:
make lintpasses on this branch and fails on a script containing an unquotedrm -rf $1/x.