From a98b11138a5a205efc6b605d8177509e2d3ac564 Mon Sep 17 00:00:00 2001 From: Julien Delange Date: Wed, 12 Jun 2024 17:44:10 +0200 Subject: [PATCH] add static analyzer --- .github/workflows/datadog-static-analysis.yml | 21 +++++++++++++++++++ static-analysis.datadog.yml | 5 +++++ 2 files changed, 26 insertions(+) create mode 100644 .github/workflows/datadog-static-analysis.yml create mode 100644 static-analysis.datadog.yml diff --git a/.github/workflows/datadog-static-analysis.yml b/.github/workflows/datadog-static-analysis.yml new file mode 100644 index 0000000000..86d5107af3 --- /dev/null +++ b/.github/workflows/datadog-static-analysis.yml @@ -0,0 +1,21 @@ +on: [push] + +name: Datadog Static Analysis + +jobs: + static-analysis: + runs-on: ubuntu-latest + name: Datadog Static Analyzer + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Check code meets quality and security standards + id: datadog-static-analysis + uses: DataDog/datadog-static-analyzer-github-action@v1 + with: + dd_api_key: ${{ secrets.SYSTEM_TESTS_E2E_DD_API_KEY }} + dd_app_key: ${{ secrets.SYSTEM_TESTS_E2E_DD_APP_KEY }} + dd_service: dd-trace-go + dd_env: ci + dd_site: datadoghq.com + cpu_count: 2 diff --git a/static-analysis.datadog.yml b/static-analysis.datadog.yml new file mode 100644 index 0000000000..bb08fa3286 --- /dev/null +++ b/static-analysis.datadog.yml @@ -0,0 +1,5 @@ +rulesets: + - sit-ci-best-practices: + only: + - ".github/workflows" +