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

test: add new some test #92

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

test: add new some test #92

wants to merge 6 commits into from

Conversation

bjohansebas
Copy link

I want to help get this tool out of beta :)

I've been taking references from how it's done in https://github.com/actions/javascript-action/blob/14c58ed4a7813f8bd0b980f088cee5e31b46c6b6

Related #10

Comment on lines +145 to +150
if (autoPush) {
// @see: https://github.com/actions-js/push/blob/master/start.sh#L43
core.info('Pushing changes to database and report')
const remoteRepo = `https://${process.env.INPUT_GITHUB_ACTOR}:${githubToken}@github.com/${process.env.INPUT_REPOSITORY}.git`
await exec.exec(`git push origin ${process.env.GITHUB_HEAD_REF} --force --no-verify --repo ${remoteRepo}`)
}
core.info('Pushing changes to database and report')
const remoteRepo = `https://${process.env.INPUT_GITHUB_ACTOR}:${githubToken}@github.com/${process.env.INPUT_REPOSITORY}.git`
await exec.exec(`git push origin ${process.env.GITHUB_HEAD_REF} --force --no-verify --repo ${remoteRepo}`)
}
Copy link
Author

Choose a reason for hiding this comment

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

I'm worried that the GitHub token might be displayed when something fails. Maybe I should limit it to a smaller scope.

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

Successfully merging this pull request may close these issues.

1 participant