3
3
# match on an event_type parameter when triggered via an API call.
4
4
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows
5
5
on :
6
- pull_request :
7
- workflow_dispatch :
8
-
6
+ pull_request : null
7
+ workflow_dispatch : null
9
8
repository_dispatch :
10
9
types : [integration_tests]
11
10
@@ -24,12 +23,12 @@ jobs:
24
23
MINIO_HOST : " minio:9000"
25
24
MINIO_BUCKET_NAME : " pulumi-checkpoints"
26
25
MINIO_PP_BUCKET_NAME : " pulumi-policy-packs"
27
- # When regenerating the license, create a restricted license.
28
- # That is, create a license that has a max unit of just 1 unless
29
- # otherwise required.
30
- PULUMI_LICENSE_KEY : ${{ secrets.PULUMI_LICENSE_KEY }}
26
+ ESC_ACTION_EXPORT_ENVIRONMENT_VARIABLES : PULUMI_LICENSE_KEY=PULUMI_LICENSE_KEY
31
27
32
28
steps :
29
+ - name : Fetch secrets from ESC
30
+ id : esc-secrets
31
+ uses : pulumi/esc-action@v1
33
32
- name : Set env vars
34
33
run : |
35
34
# There doesn't seem to be a way to map environment variables into other enviroments
62
61
- name : Login to Docker Hub as pulumi-bot
63
62
uses : docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
64
63
with :
65
- username : ${{ secrets.DOCKERHUB_USERNAME }}
66
- password : ${{ secrets.DOCKERHUB_PASSWORD }}
64
+ username : ${{ steps.esc- secrets.outputs .DOCKERHUB_USERNAME }}
65
+ password : ${{ steps.esc- secrets.outputs .DOCKERHUB_PASSWORD }}
67
66
68
67
- name : Run Minio
69
68
run : |
@@ -124,8 +123,15 @@ jobs:
124
123
# The Slack webhook URL must be specific to the pulumi-service Slack channel.
125
124
# The name of the Slack app is "Pulumi Webhooks". You must have access to it
126
125
# to be able to see it on https://api.slack.com.
127
- SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}
126
+ SLACK_WEBHOOK_URL : ${{ steps.esc- secrets.outputs .SLACK_WEBHOOK_URL }}
128
127
with :
129
128
text : Minio integration test in pulumi-self-hosted-installers failed for service's latest edge build
130
129
fields : job,workflow
131
130
status : ${{ job.status }}
131
+ env :
132
+ ESC_ACTION_OIDC_AUTH : true
133
+ ESC_ACTION_OIDC_ORGANIZATION : pulumi
134
+ ESC_ACTION_OIDC_REQUESTED_TOKEN_TYPE : urn:pulumi:token-type:access_token:organization
135
+ ESC_ACTION_ENVIRONMENT : imports/github-secrets
136
+ ESC_ACTION_EXPORT_ENVIRONMENT_VARIABLES : false
137
+ permissions : write-all # Equivalent to default permissions plus id-token: write
0 commit comments