diff --git a/.github/actions/upload-datadog/action.yaml b/.github/actions/upload-datadog/action.yaml index d1881d9a723ab..2deac2b41f030 100644 --- a/.github/actions/upload-datadog/action.yaml +++ b/.github/actions/upload-datadog/action.yaml @@ -15,6 +15,11 @@ runs: echo "Not a pull request from the main repo, skipping..." exit 0 fi + if [[ -z "${{ inputs.api-key }}" ]]; then + # This can happen for dependabot. + echo "No API key provided, skipping..." + exit 0 + fi npm install -g @datadog/datadog-ci datadog-ci junit upload --service coder ./gotests.xml \ --tags os:${{runner.os}} --tags runner_name:${{runner.name}}