@@ -53,11 +53,17 @@ jobs:
53
53
echo "name=workspace-integration-test-${{ github.run_id }}-${{ github.run_attempt }}"
54
54
} >> $GITHUB_OUTPUT
55
55
fi
56
+ - name : Get Secrets from GCP
57
+ id : ' secrets'
58
+ uses : ' google-github-actions/get-secretmanager-secrets@v1'
59
+ with :
60
+ secrets : |-
61
+ WORKSPACE_SLACK_WEBHOOK:gitpod-core-dev/workspace-slack-webhook
56
62
- name : Slack Notification
57
63
uses : rtCamp/action-slack-notify@v2
58
64
if : failure()
59
65
env :
60
- SLACK_WEBHOOK : ${{ secrets.WORKSPACE_SLACK_WEBHOOK }}
66
+ SLACK_WEBHOOK : ${{ steps. secrets.outputs .WORKSPACE_SLACK_WEBHOOK }}
61
67
SLACK_COLOR : ${{ job.status }}
62
68
SLACK_MESSAGE : main branch build failed
63
69
check :
@@ -83,12 +89,20 @@ jobs:
83
89
name : ${{ needs.configuration.outputs.name }}
84
90
sa_key : ${{ secrets.GCP_CREDENTIALS }}
85
91
version : ${{ needs.configuration.outputs.version}}
92
+ - name : Get Secrets from GCP
93
+ id : ' secrets'
94
+ uses : ' google-github-actions/get-secretmanager-secrets@v1'
95
+ with :
96
+ secrets : |-
97
+ WORKSPACE_SLACK_WEBHOOK:gitpod-core-dev/workspace-slack-webhook
98
+ WORKSPACE_INTEGRATION_TEST_USERNAME:gitpod-core-dev/workspace-integration-test-username
99
+ WORKSPACE_INTEGRATION_TEST_USER_TOKEN:gitpod-core-dev/workspace-integration-test-user-token
86
100
- name : Integration Test
87
101
shell : bash
88
102
env :
89
103
ROBOQUAT_TOKEN : ${{ secrets.GITHUB_TOKEN }}
90
- USERNAME : ${{ secrets.WORKSPACE_INTEGRATION_TEST_USERNAME }}
91
- USER_TOKEN : ${{ secrets.WORKSPACE_INTEGRATION_TEST_USER_TOKEN }}
104
+ USERNAME : ${{ steps. secrets.outputs .WORKSPACE_INTEGRATION_TEST_USERNAME }}
105
+ USER_TOKEN : ${{ steps. secrets.outputs .WORKSPACE_INTEGRATION_TEST_USER_TOKEN }}
92
106
PREVIEW_ENV_DEV_SA_KEY : ${{ secrets.GCP_CREDENTIALS }}
93
107
PREVIEW_NAME : ${{ needs.configuration.outputs.name }}
94
108
run : |
@@ -156,7 +170,7 @@ jobs:
156
170
uses : rtCamp/action-slack-notify@v2
157
171
if : success() || failure()
158
172
env :
159
- SLACK_WEBHOOK : ${{ secrets.WORKSPACE_SLACK_WEBHOOK }}
173
+ SLACK_WEBHOOK : ${{ steps. secrets.outputs .WORKSPACE_SLACK_WEBHOOK }}
160
174
SLACK_COLOR : ${{ job.status }}
161
175
SLACK_MESSAGE : ${{ steps.test_summary.outputs.passed }}/${{ steps.test_summary.outputs.total }} tests passed
162
176
- name : Delete preview environment
0 commit comments