From b7d2fe0fc12da145c3eaffe14041ddb90b3e29a1 Mon Sep 17 00:00:00 2001 From: yamahubuki Date: Sun, 15 Nov 2026 16:31:07 +0900 Subject: [PATCH] =?UTF-8?q?[=E4=B8=80=E6=99=82=E7=9A=84]=20site=E7=94=A8?= =?UTF-8?q?=E3=83=88=E3=83=BC=E3=82=AF=E3=83=B3=E3=82=92=E7=A2=BA=E8=AA=8D?= =?UTF-8?q?=E3=81=99=E3=82=8B=E3=83=AF=E3=83=BC=E3=82=AF=E3=83=95=E3=83=AD?= =?UTF-8?q?=E3=83=BC=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PRを開くと自動で実行され、シークレットの有無・APIとgitでのsiteへのアクセス・ actions/checkoutでのチェックアウトを確認する。問題が解決したら削除する。 Co-Authored-By: Claude Opus 5.5 --- .github/workflows/debug-site-token.yml | 28 ++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/debug-site-token.yml diff --git a/.github/workflows/debug-site-token.yml b/.github/workflows/debug-site-token.yml new file mode 100644 index 0000000..3e3722d --- /dev/null +++ b/.github/workflows/debug-site-token.yml @@ -0,0 +1,28 @@ +# 一時的な確認用ワークフロー。site用トークンの問題が解決したら削除する。 +name: Debug site token + +on: + pull_request: + +jobs: + check: + runs-on: ubuntu-latest + + steps: + - name: Check token with API and git + env: + T: ${{ secrets.ACTLAB_AUTO_GITHUB_PERSONAL_ACCESS_TOKEN }} + run: | + if [ -z "$T" ]; then echo "token is EMPTY"; exit 1; fi + echo "token length: ${#T}" + curl -s -o /dev/null -w "user: %{http_code}\n" -H "Authorization: token $T" https://api.github.com/user + curl -s -o /dev/null -w "site: %{http_code}\n" -H "Authorization: token $T" https://api.github.com/repos/actlaboratory/site + git ls-remote "https://x-access-token:${T}@github.com/actlaboratory/site.git" HEAD > /dev/null && echo "git ls-remote: OK" + + - name: Checkout site repository (same as deploy workflow) + uses: actions/checkout@v6 + with: + repository: actlaboratory/site + path: site-repo + token: ${{ secrets.ACTLAB_AUTO_GITHUB_PERSONAL_ACCESS_TOKEN }} + persist-credentials: false