Skip to content

Need help with Dependabot and Github Actions #26065

Answered by dihmeetree
dihmeetree asked this question in Actions
Discussion options

You must be logged in to vote

Solved by replacing secrets.GITHUB_TOKEN with a Github Personal Access Token (https://github.com/settings/tokens), on the merge step!

merge:
    name: Merge pull request
    runs-on: ubuntu-latest
    timeout-minutes: 10
    needs: approve
    steps:
      - name: Merge
        uses: actions/github-script@0.8.0
        with:
          script: |
            github.pulls.merge({
              owner: context.payload.repository.owner.login,
              repo: context.payload.repository.name,
              pull_number: context.payload.pull_request.number
            })
          github-token: '${{ **secrets.GITHUB\_PERSONAL\_TOKEN** }}'

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment