Skip to content

Commit

Permalink
Add datadog static analyzer (#2741)
Browse files Browse the repository at this point in the history
Co-authored-by: Dario Castañé <dario.castane@datadoghq.com>
  • Loading branch information
juli1 and darccio committed Jul 3, 2024
1 parent a7e2f3c commit 0abcdaf
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/datadog-static-analysis.yml
Original file line number Diff line number Diff line change
@@ -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.STATIC_ANALYZER_API_KEY }}
dd_app_key: ${{ secrets.STATIC_ANALYZER_APP_KEY }}
dd_service: dd-trace-go
dd_env: ci
dd_site: datadoghq.com
cpu_count: 2
5 changes: 5 additions & 0 deletions static-analysis.datadog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
rulesets:
- sit-ci-best-practices:
only:
- ".github/workflows"

0 comments on commit 0abcdaf

Please sign in to comment.