-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Manual approval doesn't work between steps of terraform plan and apply #50
Comments
So it looks like you're getting a 403 when trying to create the issue. Can you make sure the job has the correct permissions to create the issue? |
Hi Trstringer, Thanks a lot for your reply, I tried with both permissions: read-all and permissions: write-all. Could you please help with this? Thank you very much. |
Ah that's great news! I think that was likely the issue. So the way to approve the workflow is to make a comment on the issue that was created. Navigate to the issues section of the repo and hopefully you see a new issue there. On a related note, I plan on adding a link to the created issue in the job output, as suggested by #51. |
aha that is true, thank you so much for your help, can I ask why write-all permission is required for the manual approval step to run please? |
permissions:
issues: write That's so the job can create (i.e. write) an issue in the repo. |
Awesome, thank you so much @trstringer , it works perfect. It would be great if this can be mentioned somewhere in the README from my personal's point of view. |
Great suggestion! Reopening this issue so that I can track this work (adding the documentation to the README). |
Thank you so much Thomas for adding this into the documentation so there
will be less confused people as me.
Kind Regards.
Anne
…On Mon, Nov 7, 2022 at 2:12 AM Thomas Stringer ***@***.***> wrote:
Closed #50 <#50> as
completed via #57 <#57>.
—
Reply to this email directly, view it on GitHub
<#50 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFMUOICONYAQ6NDXPKZVEXDWG6OCNANCNFSM6AAAAAARJU7P3I>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***
com>
|
Hi,
I am trying to use trstringer/manual-approval@v1 between terraform plan and apply, however it complains:
Attempting to expand user xiaoanne/xiaoanne as a group (may not succeed)
GET https://api.github.com/orgs/xiaoanne/teams/xiaoanne/members: 404 Not Found []
Creating issue in repo xiaoanne/aws-h1 with the following content:
Title: Manual approval required for workflow run 3286175439
Approvers: [xiaoanne]
Body:
Workflow is pending manual review.
URL: https://github.com/xiaoanne/aws-h1/actions/runs/3286[17](https://github.com/xiaoanne/aws-h1/actions/runs/3286175439/jobs/5414000367#step:7:18)5439
Required approvers: [xiaoanne]
Respond "approved", "approve", "lgtm", "yes" to continue workflow or "denied", "deny", "no" to cancel.
error creating issue: POST https://api.github.com/repos/xiaoanne/aws-h1/issues: 403 Resource not accessible by integration []
Here is the workflow:
name: 'Terraform'
on:
push:
branches: #[ "main" ]
- 'main'
- 'test'
pull_request:
permissions:
contents: read
jobs:
setup:
name: 'Terraform'
runs-on: ubuntu-latest
environment: dev
The text was updated successfully, but these errors were encountered: