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

Push a commit using the built-in token does not work #1415

Open
dmuscanell opened this issue Jul 19, 2023 · 1 comment
Open

Push a commit using the built-in token does not work #1415

dmuscanell opened this issue Jul 19, 2023 · 1 comment

Comments

@dmuscanell
Copy link

It seems I am unable to push a commit back to the repo with the following scenario:

Using the following:

    steps:
      - uses: actions/checkout@v3
        with:
          fetch-depth: 0
      - run: |
          git config --global user.email "github-ci@test.com"
          git config --global user.name "github-ci"
          npm version patch
          git add .
          git commit -m "CI version bump"
          git push

results in an error during the execution of the action:
2023-07-19_13-26-59

It never seems to execute the git push at the end

@szepeviktor
Copy link

Yes, you are right.
It needs

    permissions:
      contents: write

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

No branches or pull requests

2 participants