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" +