配置 CI、CodeQL、Dependabot 与 Release 流水线
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
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
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from LinuxSuRen/tick-flow
-
项目门面:logo、README 与仓库 AboutPossibly taken @linuxsuren-fs claimed this 9 days ago. Opendocumentation good first issue help wanted P0
Difficulty 4/5 3-5 days Newbie friendliness 20/100
LinuxSuRen/tick-flow#20 ·
-
编写四个内置种子模板包Possibly taken @linuxsuren-fs claimed this 9 days ago. Opengood first issue help wanted P0
Difficulty 4/5 3-5 days Newbie friendliness 35/100
LinuxSuRen/tick-flow#19 ·
-
实现处理工作台前端:列表、详情与处理动作Possibly taken @linuxsuren-fs claimed this 9 days ago. Openhelp wanted P0
Difficulty 5/5 Over a week Newbie friendliness 25/100
LinuxSuRen/tick-flow#18 ·
-
实现提交门户前端:表单渲染器与我的工单Possibly taken @linuxsuren-fs claimed this 9 days ago. Openhelp wanted P0
Difficulty 4/5 3-5 days Newbie friendliness 25/100
LinuxSuRen/tick-flow#17 ·
-
实现站内通知与邮件通知Possibly taken @linuxsuren-fs claimed this 9 days ago. Openhelp wanted P0
Difficulty 4/5 3-5 days Newbie friendliness 25/100
LinuxSuRen/tick-flow#16 ·
All issues in LinuxSuRen/tick-flow
Similar issues
-
bug security-alert
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
spectrayan/carefold#391 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
undergroundrap/hatchling#624 ·
Maintainers usually reply within 1 day
-
deploy.sh and deploy_demo.sh omit LICENSE and THIRD_PARTY_NOTICES.md, so the remote build failsMay be free again A pull request for this issue was closed without being merged. Open
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Groundskeeper-robot/groundskeeper#165 ·
Maintainers usually reply within 1 day
-
security: set top-level least-privilege permissions in five workflowsPossibly taken @JonathanTSilva claimed this today. Openpriority: p2 size: xs type: security
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
JonathanTSilva/jts-website#150 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
snowplow/snowplow-cli#179 ·
Maintainers usually reply within 2 days