diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 0d1a42b..2f2a70d 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -6,7 +6,7 @@ on: jobs: test: - runs-on: macos-latest + runs-on: macos-latest:host steps: - name: Checkout uses: actions/checkout@v3 @@ -43,7 +43,7 @@ jobs: run: rm -f data/users/test_*.sqlite build: - runs-on: macos-latest + runs-on: macos-latest:host steps: - name: Checkout uses: actions/checkout@v3 diff --git a/AGENTS.md b/AGENTS.md index b0ed7e5..4913b8f 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -302,6 +302,33 @@ Home(根資料夾) ## CI/CD配置(Gitea Actions) +### Access Token 配置 + +**Token資訊:** +- **Token名稱:** OpenCode_M4Mini +- **建立日期:** 2026-05-16 +- **擁有者:** warren (Warren Lo) +- **權限範圍:** repo (完整倉庫權限) +- **用途:** CI/CD部署、倉庫管理、自動化操作 + +**Token值:** `c5e025496ebc3c7408a971d64a33bd56aac9186c` + +**使用方式:** +```bash +# API認證 +curl -H "Authorization: token c5e025496ebc3c7408a971d64a33bd56aac9186c" \ + https://gitea.momentry.ddns.net/api/v1/user + +# Git推送(需配置遠端) +git remote set-url origin https://oauth2:c5e025496ebc3c7408a971d64a33bd56aac9186c@gitea.momentry.ddns.net/warren/markbase.git +``` + +**安全提醒:** +- ⚠️ 此Token僅用於本機開發環境 +- ⚠️ 請勿提交到公開倉庫 +- ⚠️ 定期更換Token(建議每90天) +- ⚠️ 如需撤銷:Gitea → Settings → Applications → Access Tokens → Delete + ###環境資訊 - **Gitea Server**: https://gitea.momentry.ddns.net