Guide

GitHub Actions Resource Not Accessible By Integration

1 min read
Github Action error that integration resource is not accessible
Symptom

A workflow that creates a release fails with "Resource not accessible by integration".

Cause

After the repository was deleted and recreated, the workflow token kept read-only permissions.

Fix

In Settings → Actions → General, set Workflow permissions to "Read and write permissions".

Applies to

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"

github actions integration error

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.

github actions integration error