Skip to content

Commit

Permalink
Remove persist-credentials flag in checkout step of the actions
Browse files Browse the repository at this point in the history
- Setting this to false causes the GitHub action to use the PAT of the person who pushed the changes to the repo. 
- Removing this will set the value to true by default thereby persisting inbuilt github_token across all the steps including the commit step which is currently failing.
- GitHub removes this in post-run step.
  • Loading branch information
bnallapeta committed Jul 21, 2023
1 parent 18dad59 commit ad70134
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
- name: Check out code
uses: actions/checkout@v3
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo

# Setting up helm binary
Expand Down

0 comments on commit ad70134

Please sign in to comment.