-
We create a review app with its own environment for each pull request. When the PR is closed, we want the environment to be removed completely. At the moment we use deactivate-env: https://github.com/DFE-Digital/find-teacher-training/blob/main/.github/workflows/delete-review-app.yml#L85-L91 We tried with delete-env but it fails with error "Resource not accessible by integration". See: https://github.com/DFE-Digital/find-teacher-training/runs/5317641750?check_suite_focus=true Any idea? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
This seems similar to this discussion: #78 let me know if none of the approaches described there works for you! |
Beta Was this translation helpful? Give feedback.
-
The PAT token is attached to a Github user who may have too many permissions on too many repositories. And it breaks automation when the user leaves. So the only viable solution is to create a dedicated Github service account, which is more work to maintain and potentially more costly. Also it requires admin permission on the repo. |
Beta Was this translation helpful? Give feedback.
The PAT token is attached to a Github user who may have too many permissions on too many repositories. And it breaks automation when the user leaves. So the only viable solution is to create a dedicated Github service account, which is more work to maintain and potentially more costly. Also it requires admin permission on the repo.
I think the limitation is from Github, but it may be useful to mention it in the Readme?