Skip to content

Commit 55c13d6

Browse files
committed
fix(ci): use persist-credentials false to allow BOT_GITHUB_TOKEN push
The checkout actions default credential helper was overriding the BOT_GITHUB_TOKEN embedded in the push URL, causing a 403 on manifest commit. Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent e96eba5 commit 55c13d6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/build-fcash2-upload-android.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
- uses: actions/checkout@v4
4242
with:
4343
fetch-depth: 0
44+
persist-credentials: false
4445

4546
- name: Setup Java env
4647
uses: actions/setup-java@v3
@@ -124,7 +125,7 @@ jobs:
124125
run: |
125126
git config user.name "github-actions[bot]"
126127
git config user.email "github-actions[bot]@users.noreply.github.com"
127-
git add .well-known/release-manifest.json buildSrc/src/main/java/Packaging.kt
128+
git add .well-known/release-manifest.json
128129
git diff --cached --quiet && echo "No changes to commit" && exit 0
129130
git commit -m "build: update release manifest"
130131
git push https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git HEAD:code/cash

0 commit comments

Comments
 (0)