octokit / request-action

A GitHub Action to send arbitrary requests to GitHub's REST API

Home Page:https://github.com/marketplace/actions/GitHub-API-Request

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PRs are mergeable with check runs failing and no approvals in this repository

oscard0m opened this issue Β· comments

That's because part of the release is a git push to the default branch. We would need to use an admit PAT if we were to enable branch protections for the *-action repositories.

So the steps would be:

  1. Replace GITHUB_TOKEN in release.yml
env:
-         GITHUB_TOKEN: ${{ secrets.GR2M_PAT_FOR_SEMANTIC_RELEASE }}
+         GITHUB_TOKEN: ${{ secrets.OCTOKITBOT_PAT }}
  1. Enable branch protection settings in the repository.

Is this correct?

Is secrets.OCTOKITBOT_PAT available at Org level?

we would need to make @octokitbot an admin in this repo, but maybe that's the simplest solution, let's do it πŸ‘πŸΌ I'll update the repository settings, can you update release.yml? Let's do the same for https://github.com/octokit/graphql-action

πŸŽ‰ This issue has been resolved in version 2.1.6 πŸŽ‰

The release is available on GitHub release

Your semantic-release bot πŸ“¦πŸš€