-
Notifications
You must be signed in to change notification settings - Fork 66k
Add Datadog Synthetic tests workflow #42922
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,38 @@ | ||||||||||||||||||||||||||||||||||||||||||
| # This workflow will trigger Datadog Synthetic tests within your Datadog organisation | ||||||||||||||||||||||||||||||||||||||||||
| # For more information on running Synthetic tests within your GitHub workflows see: https://docs.datadoghq.com/synthetics/cicd_integrations/github_actions/ | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| # This workflow uses actions that are not certified by GitHub. | ||||||||||||||||||||||||||||||||||||||||||
| # They are provided by a third-party and are governed by | ||||||||||||||||||||||||||||||||||||||||||
| # separate terms of service, privacy policy, and support | ||||||||||||||||||||||||||||||||||||||||||
| # documentation. | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| # To get started: | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| # 1. Add your Datadog API (DD_API_KEY) and Application Key (DD_APP_KEY) as secrets to your GitHub repository. For more information, see: https://docs.datadoghq.com/account_management/api-app-keys/. | ||||||||||||||||||||||||||||||||||||||||||
| # 2. Start using the action within your workflow | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| name: Run Datadog Synthetic tests | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| on: | ||||||||||||||||||||||||||||||||||||||||||
| push: | ||||||||||||||||||||||||||||||||||||||||||
| branches: [ "main" ] | ||||||||||||||||||||||||||||||||||||||||||
| pull_request: | ||||||||||||||||||||||||||||||||||||||||||
| branches: [ "main" ] | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| jobs: | ||||||||||||||||||||||||||||||||||||||||||
| build: | ||||||||||||||||||||||||||||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| steps: | ||||||||||||||||||||||||||||||||||||||||||
| - uses: actions/checkout@v4 | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| # Run Synthetic tests within your GitHub workflow. | ||||||||||||||||||||||||||||||||||||||||||
| # For additional configuration options visit the action within the marketplace: https://github.com/marketplace/actions/datadog-synthetics-ci | ||||||||||||||||||||||||||||||||||||||||||
| - name: Run Datadog Synthetic tests | ||||||||||||||||||||||||||||||||||||||||||
| uses: DataDog/synthetics-ci-github-action@87b505388a22005bb8013481e3f73a367b9a53eb # v1.4.0 | ||||||||||||||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||||||||||||||
| api_key: ${{secrets.DD_API_KEY}} | ||||||||||||||||||||||||||||||||||||||||||
| app_key: ${{secrets.DD_APP_KEY}} | ||||||||||||||||||||||||||||||||||||||||||
| test_search_query: 'tag:e2e-tests' #Modify this tag to suit your tagging strategy | ||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+27
to
+36
|
||||||||||||||||||||||||||||||||||||||||||
| - uses: actions/checkout@v4 | |
| # Run Synthetic tests within your GitHub workflow. | |
| # For additional configuration options visit the action within the marketplace: https://github.com/marketplace/actions/datadog-synthetics-ci | |
| - name: Run Datadog Synthetic tests | |
| uses: DataDog/synthetics-ci-github-action@87b505388a22005bb8013481e3f73a367b9a53eb # v1.4.0 | |
| with: | |
| api_key: ${{secrets.DD_API_KEY}} | |
| app_key: ${{secrets.DD_APP_KEY}} | |
| test_search_query: 'tag:e2e-tests' #Modify this tag to suit your tagging strategy | |
| - uses: actions/checkout@v4 | |
| # Run Synthetic tests within your GitHub workflow. | |
| # For additional configuration options visit the action within the marketplace: https://github.com/marketplace/actions/datadog-synthetics-ci | |
| - name: Run Datadog Synthetic tests | |
| uses: DataDog/synthetics-ci-github-action@87b505388a22005bb8013481e3f73a367b9a53eb # v1.4.0 | |
| with: | |
| api_key: ${{secrets.DD_API_KEY}} | |
| app_key: ${{secrets.DD_APP_KEY}} | |
| test_search_query: 'tag:e2e-tests' #Modify this tag to suit your tagging strategy |
Copilot
AI
Feb 12, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This workflow references DD_API_KEY/DD_APP_KEY repository secrets. When triggered by pull_request from a fork, secrets are not provided, so this step will fail and can create a permanently failing PR check for external contributors. Consider adding an if: guard to skip when secrets are unavailable, or restrict execution to trusted events (e.g., push/workflow_dispatch).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This workflow uses
actions/checkout@v4, but the rest of the repo’s workflows generally useactions/checkoutv6 and often pin to a full commit SHA. To stay consistent and reduce supply-chain risk, update this to the same pinned version used elsewhere in.github/workflows(e.g., the v6.0.1 SHA).