Skip to content

Commit

Permalink
Generate auth token in child workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jgainerdewar committed Oct 20, 2023
1 parent 72fcd8a commit 74ed4cb
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions .github/workflows/run_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,17 +100,6 @@ jobs:
needs: [init-github-context, params-gen, create-and-attach-billing-project-to-landing-zone-workflow]
steps:
- uses: 'actions/checkout@v3'
- name: Generate OAuth2 2.0 access token for owner
id: 'owner_auth'
uses: google-github-actions/auth@v1
with:
token_format: 'access_token'
workload_identity_provider: 'projects/1038484894585/locations/global/workloadIdentityPools/github-wi-pool/providers/github-wi-provider'
service_account: ${{ inputs.service-account }}
access_token_scopes: 'profile, email, openid'
access_token_subject: ${{ inputs.owner-subject }}
export_environment_variables: false
create_credentials_file: false
- name: Run Cromwell E2E tests on Azure
uses: broadinstitute/workflow-dispatch@v3
with:
Expand All @@ -121,8 +110,7 @@ jobs:
inputs: '{
"branch": "${{ needs.init-github-context.outputs.branch }}",
"bee-name": "${{ env.BEE_NAME }}",
"bearer-token": "${{ steps.owner_auth.outputs.access_token }}",
"project-name": "${{ needs.params-gen.outputs.project-name }}"}'
"billing-project-name": "${{ needs.params-gen.outputs.project-name }}"}'

delete-billing-project-v2-from-bee-workflow:
continue-on-error: true
Expand Down

0 comments on commit 74ed4cb

Please sign in to comment.