From 51d0103b8c1b206889c6bd89eecb502a24bb1a0b Mon Sep 17 00:00:00 2001 From: Edouard Schweisguth Date: Wed, 11 Sep 2024 15:56:50 +0200 Subject: [PATCH] [NOJIRA] Using service with official image instead of deprecated github action (#239) * Using service with official image instead of deprecated github action * wrong key name * Add hostname env --- .github/workflows/system-test.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/system-test.yml b/.github/workflows/system-test.yml index 8087a73f..f6e35b76 100644 --- a/.github/workflows/system-test.yml +++ b/.github/workflows/system-test.yml @@ -14,6 +14,17 @@ jobs: runs-on: group: Large Runner Shared Public labels: ubuntu-8-core-latest + services: + dd-agent: + image: gcr.io/datadoghq/agent:7 + env: + DD_API_KEY: ${{ secrets.DD_API_KEY }} + DD_TRACE_DEBUG: 1 + DD_LOGS_ENABLED: true + DD_APM_ENABLED: true + DD_HOSTNAME: "kubehound-github-action" + ports: + - 8126:8126 steps: - name: Harden Runner uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09 @@ -35,12 +46,6 @@ jobs: gcr.io:443 repo.maven.apache.org:443 *.datadoghq.com:443 - - - uses: datadog/agent-github-action@8240b406d73cb84cd5085a3919a78f59c258da3a - continue-on-error: true # external contributors will not have access to the secret, but everything else should still work - with: - api_key: ${{ secrets.DD_API_KEY }} - extra_env: DD_TRACE_DEBUG=1,DD_LOGS_ENABLED=true,DD_APM_ENABLED=true - name: Checkout Git Repo uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab