Skip to content

Commit

Permalink
fix: trust policies for PR (#488)
Browse files Browse the repository at this point in the history
* fix: trust policies for PR

* fix: fmt issues
  • Loading branch information
barkerl authored Nov 29, 2024
1 parent 8bb2ab1 commit e064bdf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions infra/terraform/accounts/nonprod/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ module "account" {

github_oidc_subjects = concat(
[
"dvsa/vol-app:ref:refs/heads/main", # `.github/workflows/docker.yaml` & `.github/workflows/assets.yaml`.
"dvsa/vol-app:environment:account-nonprod", # `.github/workflows/deploy-account.yaml`.
"dvsa/vol-app:ref:refs/heads/main", # `.github/workflows/docker.yaml` & `.github/workflows/assets.yaml`.
"dvsa/vol-app:environment:account-nonprod",
"dvsa/vol-app:pull_request", # `.github/workflows/deploy-account.yaml`.
],
[
for env in local.environments : "dvsa/vol-app:environment:${env}" # `.github/workflows/deploy-environment.yaml`
Expand Down
5 changes: 3 additions & 2 deletions infra/terraform/accounts/prod/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ module "account" {

github_oidc_subjects = concat(
[
"dvsa/vol-app:ref:refs/heads/main", # `.github/workflows/docker.yaml` & `.github/workflows/assets.yaml`.
"dvsa/vol-app:environment:account-prod", # `.github/workflows/deploy-account.yaml`.
"dvsa/vol-app:ref:refs/heads/main", # `.github/workflows/docker.yaml` & `.github/workflows/assets.yaml`.
"dvsa/vol-app:environment:account-prod",
"dvsa/vol-app:pull_request", # `.github/workflows/deploy-account.yaml`.
],
[
for env in local.environments : "dvsa/vol-app:environment:${env}" # `.github/workflows/deploy-environment.yaml`
Expand Down

0 comments on commit e064bdf

Please sign in to comment.