File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -10,4 +10,5 @@ include {
10
10
inputs = {
11
11
domain = " bors-prod.rust-lang.net"
12
12
gh_app_id = " 278306"
13
+ trusted_sub = " repo:rust-lang/bors:environment:production"
13
14
}
Original file line number Diff line number Diff line change @@ -10,4 +10,5 @@ include {
10
10
inputs = {
11
11
domain = " bors-staging.rust-lang.net"
12
12
gh_app_id = " 343095"
13
+ trusted_sub = " repo:rust-lang/bors:environment:staging"
13
14
}
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ resource "aws_iam_role" "gha" {
70
70
}
71
71
Condition = {
72
72
StringLike = {
73
- " token.actions.githubusercontent.com:sub" : " repo:rust-lang/bors:ref:refs/heads/main "
73
+ " token.actions.githubusercontent.com:sub" : " ${ var . trusted_sub } "
74
74
}
75
75
StringEquals = {
76
76
" token.actions.githubusercontent.com:aud" : " sts.amazonaws.com"
@@ -498,3 +498,7 @@ variable "domain" {
498
498
variable "gh_app_id" {
499
499
description = " GitHub App ID"
500
500
}
501
+
502
+ variable "trusted_sub" {
503
+ description = " GitHub OIDC claim"
504
+ }
You can’t perform that action at this time.
0 commit comments