Skip to content

Commit

Permalink
Merge pull request #21 from FociSolutions/3-turn-bootstrap-action-var…
Browse files Browse the repository at this point in the history
…iable-creation-into-secrets

Changed some GH action vars to secrets
  • Loading branch information
bzarboni1 authored Feb 29, 2024
2 parents fb86fa0 + 0a72857 commit 9c14ca2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
5 changes: 0 additions & 5 deletions bootstrap/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ variable "billing_account" {
type = string
}

variable "terraform_service_account" {
description = "Service account email of the account to impersonate to run Terraform."
type = string
}

#Github variables
variable "github_enterprise_slug" {
type = string
Expand Down
8 changes: 4 additions & 4 deletions organizations/.github/workflows/drift-detection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ jobs:
id: auth
uses: google-github-actions/auth@v2
with:
workload_identity_provider: "${{ vars.WORKLOAD_IDENTITY_PROVIDER }}"
service_account: "${{ vars.GCP_SERVICE_ACCOUNT }}"
workload_identity_provider: "${{ secrets.WORKLOAD_IDENTITY_PROVIDER }}"
service_account: "${{ secrets.GCP_SERVICE_ACCOUNT }}"

- name: Check Terraform Format
id: fmt
Expand Down Expand Up @@ -153,8 +153,8 @@ jobs:
id: auth
uses: google-github-actions/auth@v2
with:
workload_identity_provider: "${{ vars.WORKLOAD_IDENTITY_PROVIDER }}"
service_account: "${{ vars.GCP_SERVICE_ACCOUNT }}"
workload_identity_provider: "${{ secrets.WORKLOAD_IDENTITY_PROVIDER }}"
service_account: "${{ secrets.GCP_SERVICE_ACCOUNT }}"

- name: Check Terraform Format
id: fmt
Expand Down
4 changes: 2 additions & 2 deletions organizations/.github/workflows/on-pull-and-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ jobs:
id: auth
uses: google-github-actions/auth@v2
with:
workload_identity_provider: "${{ vars.WORKLOAD_IDENTITY_PROVIDER }}"
service_account: "${{ vars.GCP_SERVICE_ACCOUNT }}"
workload_identity_provider: "${{ secrets.WORKLOAD_IDENTITY_PROVIDER }}"
service_account: "${{ secrets.GCP_SERVICE_ACCOUNT }}"

- name: Check Terraform Format
id: fmt
Expand Down

0 comments on commit 9c14ca2

Please sign in to comment.