From dfeee0a6e1d6fbbdbcb948c7bcf912e059fbf6da Mon Sep 17 00:00:00 2001 From: Teemu Erkkola Date: Wed, 2 Oct 2024 11:01:17 +0300 Subject: [PATCH] REKDAT-158: Access secrets through environment variables --- .github/workflows/test.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a61c25de..bd9ebe5f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -297,8 +297,12 @@ jobs: - name: upload robot test results to XRay if: always() shell: bash + env: + JIRA_ACCESS_TOKEN: ${{ secrets.JIRA_ACCESS_TOKEN }} + JIRA_URL: ${{ secrets.JIRA_URL }} + JIRA_PROJECT_ID: ${{ secrets.JIRA_PROJECT_ID }} run: | - curl -H "Authorization: Bearer ${{ secrets.JIRA_ACCESS_TOKEN }}" -F file=@results/output.xml "${{ secrets.JIRA_URL }}/rest/raven/1.0/import/execution/robot?projectKey=${{ secrets.JIRA_PROJECT_ID }}" + curl -H "Authorization: Bearer ${JIRA_ACCESS_TOKEN}" -F file=@results/output.xml "${JIRA_URL}/rest/raven/1.0/import/execution/robot?projectKey=${JIRA_PROJECT_ID}" - name: upload robot test result artifacts if: always()