Skip to content

Commit

Permalink
feat(android-app-ci): Integrate Dependabot secrets (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
gnarea authored Jun 1, 2022
1 parent d0bf8af commit 2e452c9
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 18 deletions.
33 changes: 17 additions & 16 deletions examples/self/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/self/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
github = {
source = "integrations/github"
version = "~> 4.19.0"
version = "~> 4.26.0"
}
}
}
Expand Down
6 changes: 6 additions & 0 deletions modules/android-app-ci/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ resource "github_actions_secret" "ci_service_account" {
plaintext_value = base64decode(google_service_account_key.github_actions_ci.private_key)
}

resource "github_dependabot_secret" "ci_service_account" {
repository = var.gh_repo_name
secret_name = "CI_GCP_SERVICE_ACCOUNT"
plaintext_value = base64decode(google_service_account_key.github_actions_ci.private_key)
}

resource "github_actions_secret" "publisher_service_account" {
repository = var.gh_repo_name
secret_name = "PUBLISHER_GCP_SERVICE_ACCOUNT"
Expand Down
2 changes: 1 addition & 1 deletion providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
github = {
source = "integrations/github"
version = ">= 4.19.0, < 5.0.0"
version = ">= 4.26.0, < 5.0.0"
}
}

Expand Down

0 comments on commit 2e452c9

Please sign in to comment.