1
+ permissions : write-all # Equivalent to default permissions plus id-token: write
2
+ env :
3
+ ESC_ACTION_OIDC_AUTH : true
4
+ ESC_ACTION_OIDC_ORGANIZATION : pulumi
5
+ ESC_ACTION_OIDC_REQUESTED_TOKEN_TYPE : urn:pulumi:token-type:access_token:organization
6
+ ESC_ACTION_ENVIRONMENT : imports/github-secrets
7
+ ESC_ACTION_EXPORT_ENVIRONMENT_VARIABLES : false
1
8
# workflow_dispatch allows for manual triggering from the GitHub Actions UI, as well
2
9
# as the API. repository_dispatch allows us to trigger multiple workflows that
3
10
# match on an event_type parameter when triggered via an API call.
4
11
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows
5
12
on :
6
- pull_request :
7
- workflow_dispatch :
8
-
13
+ pull_request : null
14
+ workflow_dispatch : null
9
15
repository_dispatch :
10
16
types : [integration_tests]
11
17
@@ -24,12 +30,12 @@ jobs:
24
30
MINIO_HOST : " minio:9000"
25
31
MINIO_BUCKET_NAME : " pulumi-checkpoints"
26
32
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 }}
33
+ ESC_ACTION_EXPORT_ENVIRONMENT_VARIABLES : PULUMI_LICENSE_KEY
31
34
32
35
steps :
36
+ - name : Fetch secrets from ESC
37
+ id : esc-secrets
38
+ uses : pulumi/esc-action@v1
33
39
- name : Set env vars
34
40
run : |
35
41
# There doesn't seem to be a way to map environment variables into other enviroments
62
68
- name : Login to Docker Hub as pulumi-bot
63
69
uses : docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
64
70
with :
65
- username : ${{ secrets.DOCKERHUB_USERNAME }}
66
- password : ${{ secrets.DOCKERHUB_PASSWORD }}
71
+ username : ${{ steps.esc- secrets.outputs .DOCKERHUB_USERNAME }}
72
+ password : ${{ steps.esc- secrets.outputs .DOCKERHUB_PASSWORD }}
67
73
68
74
- name : Run Minio
69
75
run : |
@@ -124,7 +130,7 @@ jobs:
124
130
# The Slack webhook URL must be specific to the pulumi-service Slack channel.
125
131
# The name of the Slack app is "Pulumi Webhooks". You must have access to it
126
132
# to be able to see it on https://api.slack.com.
127
- SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}
133
+ SLACK_WEBHOOK_URL : ${{ steps.esc- secrets.outputs .SLACK_WEBHOOK_URL }}
128
134
with :
129
135
text : Minio integration test in pulumi-self-hosted-installers failed for service's latest edge build
130
136
fields : job,workflow
0 commit comments