Skip to content

Commit ed5ea16

Browse files
authored
Switch to pull non-secret values from env (#10)
1 parent 378d66c commit ed5ea16

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/integration.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,20 @@ jobs:
4949
name: 'Auth'
5050
uses: 'google-github-actions/auth@v1'
5151
with:
52-
workload_identity_provider: '${{ secrets.WIF_PROVIDER_NAME }}'
53-
service_account: '${{ secrets.SERVICE_ACCOUNT_EMAIL }}'
52+
workload_identity_provider: '${{ vars.WIF_PROVIDER_NAME }}'
53+
service_account: '${{ vars.SERVICE_ACCOUNT_EMAIL }}'
5454

5555
- id: 'gcloud-setup'
5656
name: 'Set up Cloud SDK'
5757
uses: 'google-github-actions/setup-gcloud@main'
5858
with:
59-
project_id: '${{ secrets.PROJECT_ID }}'
59+
project_id: '${{ vars.PROJECT_ID }}'
6060

6161
- id: 'populate-pipeline-template'
6262
name: 'Populate values in template for Cloud Deploy pipeline and target'
6363
run: 'envsubst < tests/fixtures/clouddeploy.yaml.template > tests/fixtures/clouddeploy.yaml'
6464
env:
65-
PROJECT_ID: '${{ secrets.PROJECT_ID }}'
65+
PROJECT_ID: '${{ vars.PROJECT_ID }}'
6666
REGION: '${{ env.REGION }}'
6767

6868
- id: 'create-pipeline'
@@ -100,6 +100,6 @@ jobs:
100100
DESCRIPTION: 'GHA test ${{ env.TEST_UID }}'
101101
IMAGES: 'gha-test-app=gcr.io/cloudrun/hello:latest'
102102
LABELS: '{"managed-by":"github-actions", "label1":"value1"}'
103-
NAME: 'projects/${{ secrets.PROJECT_ID }}/locations/${{ env.REGION }}/deliveryPipelines/gha-test-pipeline/releases/${{ env.TEST_UID }}'
104-
PROJECT_ID: '${{ secrets.PROJECT_ID }}'
103+
NAME: 'projects/${{ vars.PROJECT_ID }}/locations/${{ env.REGION }}/deliveryPipelines/gha-test-pipeline/releases/${{ env.TEST_UID }}'
104+
PROJECT_ID: '${{ vars.PROJECT_ID }}'
105105
REGION: '${{ env.REGION }}'

0 commit comments

Comments
 (0)