GitHub Actions Resource Not Accessible By Integration
A workflow that creates a release fails with "Resource not accessible by integration".
After the repository was deleted and recreated, the workflow token kept read-only permissions.
In Settings → Actions → General, set Workflow permissions to "Read and write permissions".
GitHub Actions workflows that write to the repository, such as creating releases
Issue
I ran into this issue when creating my first GitHub Actions release using actions@create-release.
Cause
When you delete a repository and recreate it with the same name, it is possible that some settings or permissions related to the integration (GitHub Actions) are not properly updated.
Solution
Enable the workflow integration.
Go to the repository's settings, navigate to the "Actions" and select "General"

Scroll down to the "Workflow permissions", select "Read and write permissions", then click "Save". This can help refresh the integration's access to the repository.
