Skip to content
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

prevent github OAuthToken from causing unwanted changes #47

Merged
merged 2 commits into from
Sep 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ Available targets:

```
<!-- markdownlint-restore -->
<!-- markdownlint-disable -->
## Requirements

| Name | Version |
Expand Down Expand Up @@ -249,6 +250,7 @@ Available targets:
| webhook\_id | The CodePipeline webhook's ID |
| webhook\_url | The CodePipeline webhook's URL. POST events to this endpoint to trigger the target |

<!-- markdownlint-restore -->



Expand Down
2 changes: 2 additions & 0 deletions docs/terraform.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!-- markdownlint-disable -->
## Requirements

| Name | Version |
Expand Down Expand Up @@ -76,3 +77,4 @@
| webhook\_id | The CodePipeline webhook's ID |
| webhook\_url | The CodePipeline webhook's URL. POST events to this endpoint to trigger the target |

<!-- markdownlint-restore -->
5 changes: 5 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,11 @@ resource "aws_codepipeline" "default" {
}
}
}

lifecycle {
# prevent github OAuthToken from causing updates, since it's removed from state file
ignore_changes = [stage[0].action[0].configuration]
}
}

# https://docs.aws.amazon.com/codepipeline/latest/userguide/action-reference-CodestarConnectionSource.html#action-reference-CodestarConnectionSource-example
Expand Down