octokit / request-action

A GitHub Action to send arbitrary requests to GitHub's REST API
https://github.com/marketplace/actions/GitHub-API-Request
MIT License
369 stars 48 forks source link

ci(release): use OCTOKITBOT_PAT as GITHUB_TOKEN #159

Closed oscard0m closed 2 years ago

oscard0m commented 2 years ago

Fix #158

gr2m commented 2 years ago

I changed the commit to fix(... to test if the setup works

gr2m commented 2 years ago

hmm that failed 🤔

oscard0m commented 2 years ago

hmm that failed 🤔

is ${{ secrets.OCTOKITBOT_PAT }} for this repository already?

gr2m commented 2 years ago

Yes OCTOKITBOT_PAT is set for all @octokit repositories

octokitbot commented 2 years ago

:tada: This PR is included in version 2.1.6 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

gr2m commented 2 years ago

okay, we have to pass the PAT to the actions/checkout step as well, this article reminded me of that: https://www.paulmowat.co.uk/blog/resolve-github-action-gh006-protected-branch-update-failed

      - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
        with:
          token: ${{ secrets.OCTOKITBOT_PAT }}