-
Notifications
You must be signed in to change notification settings - Fork 375
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3755 from DataDog/anmarchenko/dd_sca_sa
[NO TICKET] add datadog static analysis and SCA
- Loading branch information
Showing
5 changed files
with
54 additions
and
2 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 @@ | ||
on: [push] | ||
|
||
name: Datadog Software Composition Analysis | ||
|
||
jobs: | ||
software-composition-analysis: | ||
runs-on: ubuntu-latest | ||
name: Datadog SBOM Generation and Upload | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
ruby-version: "3.3" | ||
- name: Check imported libraries are secure and compliant | ||
id: datadog-software-composition-analysis | ||
uses: DataDog/datadog-sca-github-action@main | ||
with: | ||
dd_api_key: ${{ secrets.DD_API_KEY }} | ||
dd_app_key: ${{ secrets.DD_APP_KEY }} | ||
dd_service: dd-trace-rb | ||
dd_env: ci | ||
dd_site: datadoghq.com |
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,21 @@ | ||
on: [push] | ||
|
||
name: Datadog Static Analysis | ||
|
||
jobs: | ||
static-analysis: | ||
runs-on: ubuntu-latest | ||
name: Datadog Static Analyzer | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- 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: dd-trace-rb | ||
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
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 |
---|---|---|
|
@@ -35,6 +35,7 @@ | |
|datadog\.gemspec | ||
|docker-compose\.yml | ||
|shell\.nix | ||
|static-analysis\.datadog\.yml | ||
) | ||
$ | ||
}x | ||
|
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,5 @@ | ||
schema-version: v1 | ||
rulesets: | ||
- ruby-code-style | ||
- ruby-security | ||
- ruby-best-practices |