Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(gcp): Addedd ORG ID env variable pickup from secrets #95

Merged
merged 1 commit into from
Feb 26, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions .github/workflows/_tf_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ on:
required: false

jobs:

prerequisites:
name: prep data for matrix strategy
runs-on: ubuntu-latest
Expand Down Expand Up @@ -83,7 +82,7 @@ jobs:

terraform:
needs: prerequisites
name: '${{ inputs.terratest_action }} ${{ matrix.path }}@${{ matrix.tf_version }}'
name: "${{ inputs.terratest_action }} ${{ matrix.path }}@${{ matrix.tf_version }}"
permissions:
contents: read
id-token: write
Expand All @@ -95,7 +94,6 @@ jobs:
tf_version: ${{ fromJson(needs.prerequisites.outputs.tf_versions) }}
path: ${{ fromJson(needs.prerequisites.outputs.paths) }}
steps:

- name: checkout code
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -137,6 +135,7 @@ jobs:
WORKLOAD_IDENTITY_PROVIDER: ${{ secrets.WORKLOAD_IDENTITY_PROVIDER }}
GCP_SERVICE_ACCOUNT: ${{ secrets.GCP_SERVICE_ACCOUNT }}
PROJECT_ID: ${{ secrets.PROJECT_ID}}
ORG_ID: ${{ secrets.ORG_ID }}
with:
tf_version: ${{ matrix.tf_version }}
path: ${{ matrix.path }}
Expand All @@ -152,7 +151,6 @@ jobs:
id-token: write
runs-on: ubuntu-latest
steps:

- name: checkout code
uses: actions/checkout@v4

Expand All @@ -172,4 +170,5 @@ jobs:

- name: cleanup GCP
if: inputs.cloud == 'gcp'
run: echo GCP placeholder
run: echo GCP placeholder