Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(release): don't persist credentials when checking out the repo #17

Merged
merged 1 commit into from
Dec 19, 2022

Conversation

tagoro9
Copy link
Contributor

@tagoro9 tagoro9 commented Dec 19, 2022

Description

This changes originates from semantic-release/git#196. Trying to get to use semantic-release/git in combination with this action. In order for this to work, we have to be able to get semantic release to use the passed GITHUB_TOKEN instead of the default git configured

Changes

  • fix(release): don't persist credentials when checking out the repo

🚀 PR created with fotingo

To allow semantic release to use the passed github token to use git
@tagoro9 tagoro9 force-pushed the f/checkout_without_persisting_credentials_on_release branch from 9a8a392 to 9b02bed Compare December 19, 2022 22:14
@@ -36,7 +36,8 @@ runs:
uses: actions/checkout@v3
if: inputs.checkout-repo
with:
fetch-depth: 0
fetch-depth: ${{ inputs.checkout-repo == 'true' && 0 || 1 }}
persist-credentials: false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting @tagoro9 , is this something we should be doing across all of the open-turo repos?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm testing this after we merge it, so it may need to be needed (if we want to allow semantic release to commit / push using the passed Github token)

@tagoro9 tagoro9 merged commit c7ca1f9 into main Dec 19, 2022
@tagoro9 tagoro9 deleted the f/checkout_without_persisting_credentials_on_release branch December 19, 2022 22:24
@github-actions
Copy link

🎉 This PR is included in version 3.0.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants