Skip to content

Commit

Permalink
prevent github OAuthToken from causing unwanted changes (#47)
Browse files Browse the repository at this point in the history
* prevent github OAuthToken from causing unwanted changes

* Updated README.md

Co-authored-by: actions-bot <58130806+actions-bot@users.noreply.github.com>
  • Loading branch information
dknell and actions-bot authored Sep 12, 2020
1 parent a32e6c8 commit 5a4abb7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
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

0 comments on commit 5a4abb7

Please sign in to comment.