question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ok, I may be being really dumb here but

image

I get permission denied

my workflow file:

name: CI

on: [push]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
      name: Main Checkout

    - uses: actions/checkout@v2
      name: Secondary Checkout
      with:
        repository: sabuto/bot-test2
        path: bot-test2

    - name: move file to other repo
      run: \cp -Rv .github/sabubot.yml bot-test2/.github/sabubot.yml

    - name: commit to local
      run: |
        cd bot-test2
        git config --local user.email "robe_dunne@hotmail.com"
        git config --local user.name "sabuto"
        git add .
        git commit -m "Add changes"

    - name: Push changes
      uses: ad-m/github-push-action@master
      with:
        github_token: ${{ secrets.GITHUB_PSA }}
        repository: sabuto/bot-test2

I have the psa key setup in the repo that is triggering the workflow image

which is a personal access token with all rights.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:12
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

17reactions
magodocommented, Feb 4, 2020

For anyone suffering this issue, this might be the actions/checkout@v2 to blame. The default setting for checkout cannot work with push. To make them work together, you need to specify following parameters for checkout:

persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
10reactions
ad-mcommented, Feb 23, 2020

@organizejs , missing with. Let’s try:

    - uses: actions/checkout@master
      with:
         persist-credentials: false
         fetch-depth: 0
Read more comments on GitHub >

github_iconTop Results From Across the Web

What is the meaning of "What does "push the issue" mean?"?
It's like "to press the issue", and it means to give something more importance, to insist, in order to act on it and...
Read more >
to push the issue definition | Reverso - Reverso Dictionary
push · 1 when tr, often foll by: off, away, etc. to apply steady force to (something) in order to move it ·...
Read more >
How can I solve "push" issue? [duplicate] - Stack Overflow
Error encountered while pushing branch to the remote repository: rejected Updates were rejected because the tip of your current branch is behind ...
Read more >
Pushing commits to a remote repository - GitHub Docs
Use git push to push commits made on your local branch to a remote repository. ... To push a single tag, you can...
Read more >
push the issue | English examples in context - Ludwig
High quality example sentences with “push the issue” in context from reliable sources - Ludwig is the linguistic search engine that helps you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found