Skip to content

Commit

Permalink
Set STS token validity correctly for mirror-repos job.
Browse files Browse the repository at this point in the history
The job requests 3h (and it needs to) but the role was set to 1h so the
job was failing.

Not sure how it was working before — presumably there was a diff that
got stomped on just before the failures started.
  • Loading branch information
sengi committed Nov 13, 2023
1 parent 10f70ce commit 34ba3c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions terraform/deployments/github/mirror.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ resource "aws_codecommit_repository" "govuk_repos" {
resource "aws_iam_role" "github_action_mirror_repos_role" {
name = "github_action_mirror_repos_role"

max_session_duration = 10800
assume_role_policy = jsonencode({
Version = "2012-10-17"
Statement = [
Expand Down

0 comments on commit 34ba3c2

Please sign in to comment.