[Bug]: HttpError: Resource not accessible by integration
AL-Go version
7.0
Describe the issue
this error started showing randomly , i fixed it this morning but started appearing again and forgot how i fixed it .. Create Release returns this error :HttpError: Resource not accessible by integration .
here is the first time i got this error :
after fixing the bug :
the bug started appearing again :
Expected behavior
Release Created
Steps to reproduce
i don't know how to reproduce it
Additional context (logs, screenshots, etc.)
No response
closed the issue by accident , i need to know the cause of this issue , Thanks
This happens if you are creating a release in a repository, where you have pushed one or more commit's since the latest successful build and you did NOT check the use GhTokenWorkflow for PR/Commit.
Due to this security change in GitHub some time ago: https://github.blog/changelog/2023-11-02-github-actions-enforcing-workflow-scope-when-creating-a-release/
So two ways of fixing this:
- Run a CI/CD build and wait for completion before creating a release.
- Check the use GhTokenWorkflow for PR/Commit when creating a release.
We will use this bug to make a better error message for this situation.