5 Commits
Author SHA1 Message Date
Story Crater Bot 79bb934acd fix: use github.com/Riotpiaole/kmsvc-proto as module path for public consumption 2026-07-13 10:07:39 -07:00
Story Crater Bot 21ae6e9f44 fix: use correct module path riotpiao.com/kmsvc-proto 2026-07-12 22:23:07 -07:00
riotpiaole f4cc3e90d1 fix: consolidate all modules under homelab org for cross-repo resolution 2026-07-04 08:28:00 -07:00
riotpiaole 1dc0657270 ci: add homelab CA trust for HTTPS checkout 2026-07-04 07:44:46 -07:00
riotpiaole a6e978e6a2 fix: replace actions/checkout with plain git clone in CI
actions/checkout@v4 is a JS action that needs node in the job
container to run, but the buf and golang job containers don't ship
Node.js — caused "exec: node: executable file not found" failures.
2026-06-21 20:14:40 -07:00
3 changed files with 40 additions and 5 deletions
+38 -4
View File
@@ -10,9 +10,27 @@ jobs:
container:
image: bufbuild/buf:latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
# actions/checkout@v4 is a JS action — it needs `node` inside the job's
# container to run, but bufbuild/buf has no Node.js. Plain git clone has
# no such dependency and works in any image.
#
# The runner's own homelab CA isn't trusted by this container's
# default CA bundle, so https clone fails cert verification — install
# the CA before cloning.
- name: trust homelab CA
env:
HOMELAB_CA_CERT: ${{ secrets.HOMELAB_CA_CERT }}
run: |
mkdir -p /usr/local/share/ca-certificates
echo "$HOMELAB_CA_CERT" > /usr/local/share/ca-certificates/homelab-ca.crt
update-ca-certificates
- name: checkout
env:
GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git clone "https://x-access-token:${GIT_TOKEN}@${GITHUB_SERVER_URL#https://}/${GITHUB_REPOSITORY}.git" .
git checkout "${GITHUB_SHA}"
- name: buf lint
run: buf lint
@@ -26,7 +44,23 @@ jobs:
container:
image: golang:1.25
steps:
- uses: actions/checkout@v4
# Same reason as the buf job: golang:1.25 has no Node.js, so the JS
# action actions/checkout@v4 can't run here — plain git clone instead.
- name: trust homelab CA
env:
HOMELAB_CA_CERT: ${{ secrets.HOMELAB_CA_CERT }}
run: |
mkdir -p /usr/local/share/ca-certificates
echo "$HOMELAB_CA_CERT" > /usr/local/share/ca-certificates/homelab-ca.crt
apt-get update -qq && apt-get install -y -qq ca-certificates >/dev/null
update-ca-certificates
- name: checkout
env:
GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git clone "https://x-access-token:${GIT_TOKEN}@${GITHUB_SERVER_URL#https://}/${GITHUB_REPOSITORY}.git" .
git checkout "${GITHUB_SHA}"
- name: Install buf and protoc plugins
run: |
+1
View File
@@ -0,0 +1 @@
.claude
+1 -1
View File
@@ -1,4 +1,4 @@
module forgejo.riotpiao.homelab.com/rock/kmsvc-proto
module github.com/Riotpiaole/kmsvc-proto
go 1.25.0