Skip to content

Commit dda2ba5

Browse files
fix: Set checkout GHA persist-credentials to false for push to succeed (#884)
* Update github-push-action to v0.6.0 * Use 'persist-credentials: false' to allow github-push-action to push to master with a personal access token - ad-m/github-push-action#44 - ad-m/github-push-action#46
1 parent 02e9543 commit dda2ba5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/tag.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
- name: Checkout repository
4646
uses: actions/checkout@v2.2.0
4747
with:
48+
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
4849
fetch-depth: 0
4950
- name: Set up git user
5051
run: |
@@ -100,7 +101,7 @@ jobs:
100101
- name: Push changes
101102
if: >-
102103
github.event.action == 'closed' && github.event.pull_request.merged
103-
uses: ad-m/github-push-action@v0.5.0
104+
uses: ad-m/github-push-action@v0.6.0
104105
with:
105106
github_token: ${{ secrets.GITHUB_PAT }}
106107
- name: Comment that something failed

0 commit comments

Comments
 (0)