-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run Datadog static analyzer CI best practices lint rules (#221)
* Run Datadog static analyzer * Update permissions
- Loading branch information
1 parent
75bde1d
commit 4f9a9e2
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Datadog Static Analysis | ||
|
||
on: | ||
push: | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
static-analysis: | ||
name: Datadog Static Analyzer | ||
runs-on: ubuntu-latest | ||
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.DD_API_KEY }} | ||
dd_app_key: ${{ secrets.DD_APP_KEY }} | ||
dd_service: kubehound | ||
dd_env: ci | ||
dd_site: datadoghq.com | ||
cpu_count: 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
rulesets: | ||
- go-best-practices | ||
- go-security | ||
- sit-ci-best-practices: | ||
only: | ||
- ".github/workflows" | ||
ignorePaths: [] |