|
38 | 38 | runs-on: ubuntu-latest |
39 | 39 | outputs: |
40 | 40 | sha: ${{ steps.pin.outputs.sha }} |
41 | | - dd-api-key: ${{ steps.dd-sts.outputs.api_key }} |
42 | 41 | steps: |
43 | | - - name: Get Datadog credentials |
44 | | - id: dd-sts |
45 | | - uses: DataDog/dd-sts-action@2e8187910199bd93129520183c093e19aa585c75 |
46 | | - with: |
47 | | - policy: dd-trace-go |
48 | 42 | - name: Checkout system-tests |
49 | 43 | uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
50 | 44 | with: |
|
60 | 54 | with: |
61 | 55 | path: .git |
62 | 56 | key: gitdb-system-tests-${{ steps.pin.outputs.sha }} |
63 | | - - name: Get Credentials |
64 | | - run: | |
65 | | - echo "DD_API_KEY=${{ steps.dd-sts.outputs.api_key }}" >> "$GITHUB_ENV" |
66 | 57 | system-tests: |
67 | 58 | if: github.event_name != 'pull_request' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == 'DataDog/dd-trace-go') |
68 | 59 | # Note: Not using large runners because the jobs spawned by this pipeline |
@@ -122,13 +113,13 @@ jobs: |
122 | 113 | # APM scenarios requiring specific environment settings |
123 | 114 | - scenario: APM_TRACING_E2E_SINGLE_SPAN |
124 | 115 | env: |
125 | | - DD_API_KEY=$SYSTEM_TESTS_E2E_DD_API_KEY |
126 | | - DD_APPLICATION_KEY=$SYSTEM_TESTS_E2E_DD_APP_KEY |
| 116 | + DD_API_KEY=$DD_API_KEY |
| 117 | + DD_APPLICATION_KEY=$DD_APP_KEY |
127 | 118 | DD_SITE="datadoghq.com" |
128 | 119 | - scenario: APM_TRACING_E2E_OTEL |
129 | 120 | env: |
130 | | - DD_API_KEY=$SYSTEM_TESTS_E2E_DD_API_KEY |
131 | | - DD_APPLICATION_KEY=$SYSTEM_TESTS_E2E_DD_APP_KEY |
| 121 | + DD_API_KEY=$DD_API_KEY |
| 122 | + DD_APPLICATION_KEY=$DD_APP_KEY |
132 | 123 | DD_SITE="datadoghq.com" |
133 | 124 | # GraphQL System Tests |
134 | 125 | - scenario: GRAPHQL_APPSEC |
@@ -176,16 +167,17 @@ jobs: |
176 | 167 | ref: ${{ inputs.branch_ref || github.ref }} |
177 | 168 | path: 'binaries/dd-trace-go' |
178 | 169 |
|
| 170 | + # Use the app key policy to obtain DD_APP_KEY |
179 | 171 | - name: Get Datadog credentials |
180 | 172 | id: dd-sts |
181 | 173 | uses: DataDog/dd-sts-action@2e8187910199bd93129520183c093e19aa585c75 |
182 | 174 | with: |
183 | | - policy: dd-trace-go |
| 175 | + policy: dd-trace-go-app-key |
184 | 176 |
|
185 | 177 | - name: Set credentials |
186 | 178 | run: | |
187 | 179 | echo "DD_API_KEY=${{ steps.dd-sts.outputs.api_key }}" >> "$GITHUB_ENV" |
188 | | - echo "SYSTEM_TESTS_E2E_DD_API_KEY=${{ steps.dd-sts.outputs.api_key }}" >> "$GITHUB_ENV" |
| 180 | + echo "DD_APP_KEY=${{ steps.dd-sts.outputs.app_key }}" >> "$GITHUB_ENV" |
189 | 181 |
|
190 | 182 | - name: Build weblog |
191 | 183 | run: ./build.sh -i weblog |
|
0 commit comments