Commit graph

10 commits

Author SHA1 Message Date
Sam Limbu
ba425e8a87 SEC-01: pin actions/checkout in the deploy workflow to a commit SHA
deploy.yml runs on the self-hosted VPS runner with passwordless sudo, so a
mutable tag on this action is a code-execution path onto that host if the tag
is ever moved. Pinned to the commit v4 currently resolves to
(11d5960a326750d5838078e36cf38b85af677262), verified against upstream — this is
the same code the deploy already runs today, not a version bump. ci.yml is on
v7.0.1; the deploy path is deliberately left on v4 so that pinning does not
smuggle a major-version change into a workflow whose only test is a live deploy.

Raised by Codex review of PR #5 as the one unpinned `uses:` in either workflow.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-27 22:42:29 +10:00
Sam Limbu
9932bdcecb SEC-01: add pull-request CI and stop the deploy leaving DOT_ENV on the VPS
A merge to main runs the merged commit as root on the club VPS through the
self-hosted runner, and this repo has no PR CI, no required review and no
status check.

- .github/workflows/ci.yml: fmt / clippy / build --locked / test on
  ubuntu-latest, contents: read, both actions pinned by commit SHA. Never
  the VPS.
- deploy.yml: keep push to main, add workflow_dispatch, permissions
  contents: read, environment: production, and an if: always() step that
  removes the .env the deploy writes into the workspace.
- .dockerignore: keep that .env, target/ and .git out of the build context.
- Dockerfile: --locked on both cargo build --release lines.

environment: production gates nothing until required reviewers are configured
on the environment itself, and the ruleset still requires zero approving
reviews. Both are owner-only and listed in the pull request.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-27 09:42:31 +10:00
liyunze
2e3da35f91 updated github actions 2026-08-05 17:28:07 +10:00
liyunze
87f1fb4101 fixed github actions 2026-07-03 22:05:07 +10:00
liyunze
adb623d471 updated deploy yml 2025-11-16 16:50:03 +11:00
liyunze
69474aafe6 updated CI/CD pipeline and added bot info command 2025-11-12 00:14:04 +11:00
liyunze
a20d68855f updated deploy yml 2025-11-11 23:44:31 +11:00
liyunze
5b401ac2e0 added sudo for permission 2025-11-11 22:38:41 +11:00
liyunze
a966f62b81 fixed path 2025-11-11 22:37:59 +11:00
liyunze
09b0722f08 added deploy yml for Github Actions CI/CD 2025-11-11 22:37:08 +11:00