Closed dwertent closed 1 year ago
https://github.com/kubescape/github-action/pull/33#issuecomment-1494279001
As GitHub doesn't support making reviews on a content that is not related to that specific PR.
So that's why that error exists: https://github.com/kubescape/github-action/pull/33#pullrequestreview-1368878262
In addition, I just checked and found the error at https://github.com/kubescape/github-action/actions/runs/4596346433/jobs/8118910909 Error: GitHub Actions is not permitted to create or approve pull requests.
So remember to allow GitHub Actions to create and approve pull requests like https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#preventing-github-actions-from-creating-or-approving-pull-requests to get it work. But after all we don't want to see another PR gets opened unless we commit to the main branch directly.
Examples available at my fork:
Thanks @HollowMan6 !
You can see the code suggestion by committing something that introduces new issues that can get fixed by kubescape.