You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,8 @@ jobs:
42
42
- uses: actions/checkout@v5
43
43
with:
44
44
ref: ${{ github.head_ref }}
45
+
# Value already defaults to true, but `persist-credentials` is required to push new commits to the repository.
46
+
persist-credentials: true
45
47
46
48
# Other steps that change files in the repository go here
47
49
# …
@@ -444,7 +446,9 @@ Make sure to [checkout the correct branch](#checkout-the-correct-branch).
444
446
If your Workflow can't push the commit to the repository because of authentication issues,
445
447
please update your Workflow configuration and usage of [`actions/checkout`](https://github.com/actions/checkout#usage).
446
448
447
-
Updating the `token` value with a Personal Access Token should fix your issues.
449
+
Please note that `persist-credentials` in `actions/checkout` must be set to `true` to push new commits to the repository.
450
+
451
+
If you still can't push the commit, and you're using branch protection rules or similar features, updating the `token` value with a Personal Access Token should fix your issues.
448
452
449
453
### git-auto-commit fails to push commit that creates or updates files in `.github/workflows/`
0 commit comments