Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@dscho
Copy link
Contributor

@dscho dscho commented Oct 13, 2024

When the intention is to potentially create a new GitHub issue, the workflows in question need to set the permissions correctly. Otherwise the workflow runs may fail with:

Error: Resource not accessible by integration

which is an admittedly very cryptic way to say that the GITHUB_TOKEN used in the GitHub workflow run lacks a particular scope to perform the desired operation.

Note: The GITHUB_TOKEN used to have read/write permissions for all scopes by default, but that changed to read-only as per https://github.blog/changelog/2023-02-02-github-actions-updating-the-default-github_token-permissions-to-read-only; That is the reason why this here change is necessary.

This fixes #194

When the intention is to potentially create a new GitHub issue, the
workflows in question need to set the permissions correctly. Otherwise
the workflow runs may fail with:

	Error: Resource not accessible by integration

which is an admittedly _very_ cryptic way to say that the `GITHUB_TOKEN`
used in the GitHub workflow run lacks a particular scope to perform the
desired operation.

Note: The `GITHUB_TOKEN` used to have read/write permissions for all
scopes by default, but that changed to read-only as per
https://github.blog/changelog/2023-02-02-github-actions-updating-the-default-github_token-permissions-to-read-only;
That is the reason why this here change is necessary.

This fixes lycheeverse#194

Signed-off-by: Johannes Schindelin <[email protected]>
@mre mre merged commit 71a38a3 into lycheeverse:master Oct 13, 2024
@mre
Copy link
Member

mre commented Oct 13, 2024

Perfect. Thanks!

@dscho dscho deleted the set-correct-permissions-for-peter-evans/create-issue-from-file branch October 14, 2024 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Solution for "Error: Resource not accessible by integration"

2 participants