webosbrew / apps-repo

Central repo for webOS Homebrew apps
Apache License 2.0
53 stars 31 forks source link

[BUG] App submission validation step (linting) fails if PR comes from external fork #55

Closed tuxuser closed 2 years ago

tuxuser commented 2 years ago

Bug / Problem

Github workflow "app-submissions.yml" is responsible for ensuring integrity of the incoming app-submission:

As part of this checking, the workflow will attempt to post a report to the respective Pull Request discussion. example

For updating a PR from a workflow, write permissions are necessary. Write permissions are automatically given for internal PRs, e.g. branches of the main repo. For external forks these permissions are not given.

Attempted steps to fix the issue

See: (https://github.com/webosbrew/apps-repo/commit/2342301b206313f0976d0c5f5be630b4fbc2ac7e)

Issue on the actions/github-script repo: (https://github.com/actions/github-script/issues/42)

Current behaviour

App linting step fails with the following error when attempting to post a message to the PR discussion:

Resource not accessible by integration

Expected behaviour

PR gets properly updated with the "app lint" compatibility card.

Screenshot from 2022-04-22 13-45-22

mariotaku commented 2 years ago

Should be fixed now. Do you want to give it a shot?

tuxuser commented 2 years ago

Indeed it does :) Tested @ PR #57