Skip to content

Commit 887d5dc

Browse files
committed
no persist credentials
1 parent 7d448e2 commit 887d5dc

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/mirror-dot-agents.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Mirror subdir to .agents
1+
name: Mirror subdir to dot-agents
22
on:
33
push:
44
branches: [main]
@@ -12,10 +12,17 @@ jobs:
1212
- uses: actions/checkout@v4
1313
with:
1414
fetch-depth: 0
15+
persist-credentials: false
16+
17+
# (belt-and-suspenders) ensure the injected header is gone even if persist-credentials isn't honored
18+
- name: Clear default GitHub auth header
19+
run: git config --global --unset-all http.https://github.com/.extraheader || true
20+
1521
- name: Configure Git
1622
run: |
17-
git config user.name "github-actions[bot]"
23+
git config user.name "codebuff mirror bot"
1824
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
25+
1926
- name: Push subtree
2027
env:
2128
TOKEN: ${{ secrets.CODEBUFF_GITHUB_TOKEN }}

0 commit comments

Comments
 (0)