docs+ci: Staff-level README with Mermaid diagrams, golangci-lint v2, gosec/govulncheck/Trivy CI#3
Merged
Conversation
…cle diagrams ci: add test/lint/gosec/govulncheck/trivy workflows and golangci-lint v2 config refactor: add package and exported godoc comments, normalize gofmt, address gocritic/revive findings (no behavior change)
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
…ble for govulncheck Addresses Devin Review feedback: - securego/gosec, aquasecurity/trivy-action: pin to release tags instead of @master - golangci-lint-action v6 (only supports v1.x) -> v9 (supports v2.x configs) - govulncheck job: use go-version: stable to pick up stdlib CVE fixes (GO-2026-4601/4602/4870/4946/4947 are fixed in 1.25.8+) - test/lint/build jobs: use go-version-file: go.mod for reproducible builds against declared min version
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Promotes
workflowxfrom a tutorial-style repo to a Staff-level portfolio piece without changing runtime behavior:README — full rewrite around the architecture
flowchart LRof the producer → engine → store/queue → workers topologysequenceDiagramof the task lifecycle (Submit → poll → run-steps → save)Task,Workflow,Engine,Store) with explicit interface listingsCI/CD — production-grade, all under
.github/workflowsci.yml—go vet,go test ./... -race -coverprofile, build, upload coverage artifactsecurity.yml—gosec(SARIF → Code Scanning),govulncheck, Trivy filesystem scan; runs on push, PR, and weekly cron.golangci.ymlv2 schema (errcheck, govet/all-except-fieldalignment, gocritic, revive, staticcheck, bodyclose, prealloc, nilerr, etc.)Makefiletargets:test,cover,lint,security,build,tidyCode refactor (no behavior change)
salvadorRedisStore,TaskStatus, status constantsgofmtnormalized struct alignment inengine.gogocriticparamTypeCombinecleanupsctx/taskparameters with_in tests and exampleVerified locally:
go test ./... -race -cover→ pass, 56.9% coveragegolangci-lint run(v2.12.0) → 0 issuesgosec ./...→ 0 issuesReview & Testing Checklist for Human
ci,security)security-events: write— already declared)fieldalignmentlater; it's currently disabled because reordering struct fields is a separate, behavior-adjacent changeNotes
Chetas1/workflowx. If the canonical Go module path changes (currentlygithub.com/workflowx/salvador), thepkg.go.devbadge should be updated accordingly.WithLoggeraccepting the stdlib*log.Logger. A future PR could move to*slog.Loggerfor structured logging without breaking the public API (introduceWithSlogLoggerand deprecate the old one).Link to Devin session: https://app.devin.ai/sessions/475f16f7ca614b56a8f68426fb9485f9
Requested by: @Chetas1