Skip to content

Commit 47084ed

Browse files

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

.github/workflows/workspace-integration-tests.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,17 @@ jobs:
5353
echo "name=workspace-integration-test-${{ github.run_id }}-${{ github.run_attempt }}"
5454
} >> $GITHUB_OUTPUT
5555
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
5662
- name: Slack Notification
5763
uses: rtCamp/action-slack-notify@v2
5864
if: failure()
5965
env:
60-
SLACK_WEBHOOK: ${{ secrets.WORKSPACE_SLACK_WEBHOOK }}
66+
SLACK_WEBHOOK: ${{ steps.secrets.outputs.WORKSPACE_SLACK_WEBHOOK }}
6167
SLACK_COLOR: ${{ job.status }}
6268
SLACK_MESSAGE: main branch build failed
6369
check:
@@ -83,12 +89,20 @@ jobs:
8389
name: ${{ needs.configuration.outputs.name }}
8490
sa_key: ${{ secrets.GCP_CREDENTIALS }}
8591
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
86100
- name: Integration Test
87101
shell: bash
88102
env:
89103
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 }}
92106
PREVIEW_ENV_DEV_SA_KEY: ${{ secrets.GCP_CREDENTIALS }}
93107
PREVIEW_NAME: ${{ needs.configuration.outputs.name }}
94108
run: |
@@ -156,7 +170,7 @@ jobs:
156170
uses: rtCamp/action-slack-notify@v2
157171
if: success() || failure()
158172
env:
159-
SLACK_WEBHOOK: ${{ secrets.WORKSPACE_SLACK_WEBHOOK }}
173+
SLACK_WEBHOOK: ${{ steps.secrets.outputs.WORKSPACE_SLACK_WEBHOOK }}
160174
SLACK_COLOR: ${{ job.status }}
161175
SLACK_MESSAGE: ${{ steps.test_summary.outputs.passed }}/${{ steps.test_summary.outputs.total }} tests passed
162176
- name: Delete preview environment

0 commit comments

Comments
 (0)