Skip to content

Commit 5a4abb7

Browse files
dknellactions-bot
andauthored
prevent github OAuthToken from causing unwanted changes (#47)
* prevent github OAuthToken from causing unwanted changes * Updated README.md Co-authored-by: actions-bot <[email protected]>
1 parent a32e6c8 commit 5a4abb7

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ Available targets:
171171

172172
```
173173
<!-- markdownlint-restore -->
174+
<!-- markdownlint-disable -->
174175
## Requirements
175176
176177
| Name | Version |
@@ -249,6 +250,7 @@ Available targets:
249250
| webhook\_id | The CodePipeline webhook's ID |
250251
| webhook\_url | The CodePipeline webhook's URL. POST events to this endpoint to trigger the target |
251252

253+
<!-- markdownlint-restore -->
252254

253255

254256

docs/terraform.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- markdownlint-disable -->
12
## Requirements
23

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

80+
<!-- markdownlint-restore -->

main.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,11 @@ resource "aws_codepipeline" "default" {
330330
}
331331
}
332332
}
333+
334+
lifecycle {
335+
# prevent github OAuthToken from causing updates, since it's removed from state file
336+
ignore_changes = [stage[0].action[0].configuration]
337+
}
333338
}
334339

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

0 commit comments

Comments
 (0)