Skip to content

Commit

Permalink
also add dd-app-key
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahkm committed Feb 3, 2025
1 parent 6f5f9e6 commit 8e6f5fe
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/actions/dd-ci-upload/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ inputs:
dd-api-key:
required: true
description: Datadog API key to use to upload the junit files
dd-app-key:
required: true
description: Datadog APP key to use to access quality gates
service:
required: false
default: dd-trace-go
Expand Down Expand Up @@ -56,4 +59,4 @@ runs:
- name: Activate Quality Gates
shell: bash
run: env DD_API_KEY=${{ inputs.dd-api-key }} ./datadog-ci gate evaluate
run: env DD_API_KEY=${{ inputs.dd-api-key }} DD_APP_KEY=${{ inputs.dd-app-key }} ./datadog-ci gate evaluate
1 change: 1 addition & 0 deletions .github/workflows/multios-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ jobs:
uses: ./.github/actions/dd-ci-upload
with:
dd-api-key: ${{ secrets.DD_CI_API_KEY }}
dd-app-key: ${{ secrets.DD_CI_APP_KEY }}
files: ${{ env.REPORT }}
tags: go:${{ inputs.go-version }},arch:${{ runner.arch }},os:${{ runner.os }},distribution:${{ runner.distribution }}

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/unit-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ jobs:
uses: ./.github/actions/dd-ci-upload
with:
dd-api-key: ${{ secrets.DD_CI_API_KEY }}
dd-app-key: ${{ secrets.DD_CI_APP_KEY }}
files: ${{ env.TEST_RESULTS }}/gotestsum-report*.xml
tags: go:${{ inputs.go-version }},arch:${{ runner.arch }},os:${{ runner.os }},distribution:${{ runner.distribution }}

Expand Down Expand Up @@ -330,6 +331,7 @@ jobs:
uses: ./.github/actions/dd-ci-upload
with:
dd-api-key: ${{ secrets.DD_CI_API_KEY }}
dd-app-key: ${{ secrets.DD_CI_APP_KEY }}
files: ${{ env.TEST_RESULTS }}/gotestsum-report.xml ${{ env.TEST_RESULTS }}/gotestsum-report-exectrace.xml
tags: go:${{ inputs.go-version }}},arch:${{ runner.arch }},os:${{ runner.os }},distribution:${{ runner.distribution }}
- name: Upload Coverage
Expand Down

0 comments on commit 8e6f5fe

Please sign in to comment.