Skip to content

Commit c10f86c

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
@@ -51,11 +51,17 @@ jobs:
5151
echo "name=workspace-integration-test-${{ github.run_id }}-${{ github.run_attempt }}"
5252
} >> $GITHUB_OUTPUT
5353
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
5460
- name: Slack Notification
5561
uses: rtCamp/action-slack-notify@v2
5662
if: failure()
5763
env:
58-
SLACK_WEBHOOK: ${{ secrets.WORKSPACE_SLACK_WEBHOOK }}
64+
SLACK_WEBHOOK: ${{ steps.secrets.outputs.WORKSPACE_SLACK_WEBHOOK }}
5965
SLACK_COLOR: ${{ job.status }}
6066
SLACK_MESSAGE: main branch build failed
6167
check:
@@ -81,12 +87,20 @@ jobs:
8187
name: ${{ needs.configuration.outputs.name }}
8288
sa_key: ${{ secrets.GCP_CREDENTIALS }}
8389
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
8498
- name: Integration Test
8599
shell: bash
86100
env:
87101
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 }}
90104
PREVIEW_ENV_DEV_SA_KEY: ${{ secrets.GCP_CREDENTIALS }}
91105
PREVIEW_NAME: ${{ needs.configuration.outputs.name }}
92106
run: |
@@ -154,7 +168,7 @@ jobs:
154168
uses: rtCamp/action-slack-notify@v2
155169
if: success() || failure()
156170
env:
157-
SLACK_WEBHOOK: ${{ secrets.WORKSPACE_SLACK_WEBHOOK }}
171+
SLACK_WEBHOOK: ${{ steps.secrets.outputs.WORKSPACE_SLACK_WEBHOOK }}
158172
SLACK_COLOR: ${{ job.status }}
159173
SLACK_MESSAGE: ${{ steps.test_summary.outputs.passed }}/${{ steps.test_summary.outputs.total }} tests passed
160174
- name: Delete preview environment

0 commit comments

Comments
 (0)