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