taiki-e / create-gh-release-action

GitHub Action for creating GitHub Releases based on changelog.
Apache License 2.0
72 stars 11 forks source link

HTTP 403: Resource not accessible by integration #13

Closed joepio closed 2 years ago

joepio commented 2 years ago

Hi there! I just got this error:

release not found
HTTP 403: Resource not accessible by integration (https://api.github.com/repos/atomicdata-dev/atomic-data-rust/releases)
Error: Command failed: bash --noprofile --norc /home/runner/work/_actions/taiki-e/create-gh-release-action/v1/main.sh

Example action

Not entirely sure what is causing it, but it probably has to do with github's permission system. Some reported that adding permissions: write-all to the action definition solves the problem. I'm trying that now. If that works, maybe it should be added to the docs.

taiki-e commented 2 years ago

Duplicate of https://github.com/taiki-e/upload-rust-binary-action/issues/15

taiki-e commented 2 years ago

Adding permissions field like https://github.com/taiki-e/upload-rust-binary-action/issues/15#issuecomment-1141252687 to example sounds good to me.

joepio commented 2 years ago

Yup, it worked! Thanks for the quick reply. I think adding it to the docs is a fitting solution.

lukasz90b commented 2 years ago

permissions: write-all

Thanks for save my time

lukasz90b commented 2 years ago

Here's docs with list of permissions https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

taiki-e commented 2 years ago

@lukasz90b FYI, for permissions field, it is already used in examples in readme: https://github.com/taiki-e/create-gh-release-action/commit/0015858ce7b2c651ce5d75230e55d1a424848d48