配置 CI、CodeQL、Dependabot 与 Release 流水线

Open
#10 0 comments 0 reactions 0 assignees View on GitHub

@linuxsuren-fs is already working on this.

Since Nov 14, 2026.

  • #21 by @linuxsuren-fs — open

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Stale
Tech stack
docker, github-actions, go

Research direction

Start with #1 for the overall automation plan and #8 and #9 for the project build setup. Implement and validate .github/workflows/ci.yml, .github/workflows/codeql.yml, .github/dependabot.yml, and .github/workflows/release.yml, adding the GoReleaser configuration for multi-platform builds. Done means all four configurations are present and passing on a PR; the release workflow must build the frontend artifacts into release assets and publish the Docker image.

Written by the indexing model from the issue text.

Description

help wanted P0

Background

TickFlow 是开源项目,按开源仓库自动化规范配套 CI 与安全扫描。总体方案见 #1,工程骨架见 #8、#9。

Technical requirement

.github/workflows/ci.yml(push 与 PR 触发):

  • 后端 job:go build ./...、go test ./...、golangci-lint;
  • 前端 job:pnpm install && vue-tsc -b && vite build;
  • 权限最小化:permissions: contents: read。

.github/workflows/codeql.yml:Go + JavaScript 双语言分析,定时与 PR 触发。

.github/dependabot.yml:覆盖 gomod、npm、github-actions 三种生态,周更。

.github/workflows/release.yml(打 tag 触发):

  • goreleaser 构建多平台二进制;
  • 构建并推送 Docker 镜像(ghcr.io/linuxsuren/tick-flow);
  • 前端产物嵌入发布制品;发布 job 才给 contents: write 权限。

Expect

  • 四个配置文件齐备且在 PR 上可看到全部通过;
  • workflow 变更本身也走 PR,不直推 master。

Potential TODO list

  • ci.yml(后端 + 前端 job)
  • codeql.yml
  • dependabot.yml
  • release.yml + goreleaser 配置

依赖

#8、#9 合入后配置才能跑到真实构建;配置文件可先行提交。

备注(需仓库管理员操作)

以下设置 gh CLI 无法完全覆盖,请 @LinuxSuRen 在仓库 Settings 确认:

  • master 分支保护:禁止直推、禁止 force push、要求 PR 合入;
  • 自动删除 head branches(gh api -X PATCH repos/LinuxSuRen/tick-flow -F delete_branch_on_merge=true);
  • Release 不可变(Settings → General)。
Dominant language
No language data
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from LinuxSuRen/tick-flow

All issues in LinuxSuRen/tick-flow

Similar issues

More DevOps issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.