Skip to content

Commit 2c50ad8

Browse files
authored
fix(ci): pinact push認証を修正 (#9)
GitHub Appトークンを使用してpush
1 parent f3b8559 commit 2c50ad8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ jobs:
7171
env:
7272
GH_TOKEN: ${{ steps.bot.outputs.token }}
7373
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
74+
REPOSITORY: ${{ github.repository }}
7475
run: |
7576
pinact run
7677
if git diff --quiet; then
@@ -80,4 +81,5 @@ jobs:
8081
8182
git add .github/workflows/
8283
git commit -m "chore(ci): pin GitHub Actions to commit SHA"
84+
git remote set-url origin "https://x-access-token:${GH_TOKEN}@github.com/${REPOSITORY}"
8385
git push origin "HEAD:${BRANCH_NAME}"

0 commit comments

Comments
 (0)