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